1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-22 15:54:26 +00:00

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

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}')