mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-10 17:13:35 +08:00
Fixed unhandled FileNotFoundError during restore process
This commit is contained in:
parent
990448b06e
commit
d758c53b41
1 changed files with 2 additions and 0 deletions
|
@ -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}')
|
||||
|
||||
|
|
Loading…
Reference in a new issue