Fixed unhandled FileNotFoundError during restore process

This commit is contained in:
morpheus65535 2024-01-26 11:09:50 -05:00 committed by GitHub
parent 990448b06e
commit d758c53b41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -151,6 +151,8 @@ def restore_from_backup():
try:
os.remove(restore_config_path)
except FileNotFoundError:
pass
except OSError:
logging.exception(f'Unable to delete {dest_config_path}')