diff options
| author | jvoisin | 2019-10-12 13:32:04 -0700 |
|---|---|---|
| committer | jvoisin | 2019-10-12 13:32:04 -0700 |
| commit | 3cef7fe7fc81c1495a461a8594b1df69467536ea (patch) | |
| tree | 2ddf7b8e181f7e606227dabdfc020fab4d4b4250 /libmat2 | |
| parent | 6d19a209355a7d1ef3bbee32ec7c9be93ed666ad (diff) | |
Refactor tests
Diffstat (limited to 'libmat2')
| -rw-r--r-- | libmat2/exiftool.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libmat2/exiftool.py b/libmat2/exiftool.py index 2e83f13..024f490 100644 --- a/libmat2/exiftool.py +++ b/libmat2/exiftool.py | |||
| @@ -29,8 +29,7 @@ class ExiftoolParser(abstract.AbstractParser): | |||
| 29 | 29 | ||
| 30 | def _lightweight_cleanup(self) -> bool: | 30 | def _lightweight_cleanup(self) -> bool: |
| 31 | if os.path.exists(self.output_filename): | 31 | if os.path.exists(self.output_filename): |
| 32 | try: | 32 | try: # exiftool can't force output to existing files |
| 33 | # exiftool can't force output to existing files | ||
| 34 | os.remove(self.output_filename) | 33 | os.remove(self.output_filename) |
| 35 | except OSError as e: # pragma: no cover | 34 | except OSError as e: # pragma: no cover |
| 36 | logging.error("The output file %s is already existing and \ | 35 | logging.error("The output file %s is already existing and \ |
