1
0
Fork 0
mirror of synced 2025-07-04 20:37:34 +02:00

Refactor tests

This commit is contained in:
jvoisin 2019-10-12 13:32:04 -07:00
parent 6d19a20935
commit 3cef7fe7fc
5 changed files with 313 additions and 538 deletions

View file

@ -29,8 +29,7 @@ class ExiftoolParser(abstract.AbstractParser):
def _lightweight_cleanup(self) -> bool:
if os.path.exists(self.output_filename):
try:
# exiftool can't force output to existing files
try: # exiftool can't force output to existing files
os.remove(self.output_filename)
except OSError as e: # pragma: no cover
logging.error("The output file %s is already existing and \