fix: do not remove raw if exiftool failed

This commit is contained in:
starnakin 2025-04-14 19:33:38 +02:00
parent 8a123180c5
commit b5b306eb09

View File

@ -55,7 +55,7 @@ class Page():
if self._raw.exist():
if os.system(f"exiftool {self._raw.get_absolute_path()} > {self._exif.get_absolute_path()} 2>/dev/null") == 0:
return 0
os.remove(self._raw.get_absolute_path())
os.remove(self._exif.get_absolute_path())
return 1
def _render_exif(self) -> Path | None: