Ignore backup file not existing when comparing file identity

This commit is contained in:
Isaiah Odhner 2023-06-10 18:14:56 -04:00
parent 58cfbfae0a
commit 9f7f198518

View File

@ -2940,6 +2940,8 @@ class PaintApp(App[None]):
if os.path.samefile(file_path, backup_file_path):
print("Not discarding backup because it is now open in the editor:", backup_file_path)
opening_backup = True
except FileNotFoundError:
pass
except OSError as e:
print("Error comparing files:", e)
if not opening_backup: