add debug if no image
This commit is contained in:
parent
c9b631c9fd
commit
5ea0ffbaee
1 changed files with 2 additions and 0 deletions
|
@ -112,6 +112,8 @@ class image_classifier:
|
|||
if match:
|
||||
folder_date = f"{match.group('year')}.{match.group('month')}.\
|
||||
{match.group('day')}"
|
||||
else:
|
||||
self._log.debug(f"The file '{file}' doesn't seem to be an image for PIL.")
|
||||
folder = os.path.join(dirname, folder_date, filename)
|
||||
self._log.debug(f"Time based folder name section '{folder_date}'")
|
||||
new_path = os.path.dirname(folder)
|
||||
|
|
Loading…
Reference in a new issue