fix: do not remove raw if exiftool failed
This commit is contained in:
parent
8a123180c5
commit
b5b306eb09
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user