mirror of
https://github.com/1j01/textual-paint.git
synced 2025-01-09 00:28:08 +03:00
Ignore backup file not existing when comparing file identity
This commit is contained in:
parent
58cfbfae0a
commit
9f7f198518
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user