Halt processing file if error occurrs
This commit is contained in:
parent
9baca3ae37
commit
5cd5c1791b
3 changed files with 3 additions and 2 deletions
|
@ -200,6 +200,7 @@ class image_classifier:
|
|||
self.process_metadata(file)
|
||||
except Exception as error:
|
||||
self._log.error(f"Error processing file '{file}'. {error}")
|
||||
return False
|
||||
folder_date_time = self.get_file_date(file)
|
||||
if folder_date_time:
|
||||
folder_date = folder_date_time.strftime(self.folder_date_format)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[metadata]
|
||||
name = image_classifier
|
||||
version = 0.0.17
|
||||
version = 0.0.18
|
||||
|
||||
[options]
|
||||
packages = image_classifier
|
||||
|
|
2
setup.py
2
setup.py
|
@ -9,7 +9,7 @@ if os.access(requirements_file, os.R_OK):
|
|||
setuptools.setup(
|
||||
scripts=['image_classifier/image_classifier.py'],
|
||||
author="Antonio J. Delgado",
|
||||
version='0.0.17',
|
||||
version='0.0.18',
|
||||
name='image_classifier',
|
||||
author_email="antoniodelgado@susurrando.com",
|
||||
url="",
|
||||
|
|
Loading…
Reference in a new issue