add debug if no image

This commit is contained in:
Antonio J. Delgado 2022-05-02 16:52:07 +03:00
parent c9b631c9fd
commit 5ea0ffbaee

View file

@ -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)