diff --git a/image_classifier/image_classifier.py b/image_classifier/image_classifier.py index 94e6da6..3c34aa9 100755 --- a/image_classifier/image_classifier.py +++ b/image_classifier/image_classifier.py @@ -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)