mirror of https://github.com/morpheus65535/bazarr
Fixed unhandled FileNotFoundError during restore process
This commit is contained in:
parent
990448b06e
commit
d758c53b41
|
@ -151,6 +151,8 @@ def restore_from_backup():
|
||||||
|
|
||||||
try:
|
try:
|
||||||
os.remove(restore_config_path)
|
os.remove(restore_config_path)
|
||||||
|
except FileNotFoundError:
|
||||||
|
pass
|
||||||
except OSError:
|
except OSError:
|
||||||
logging.exception(f'Unable to delete {dest_config_path}')
|
logging.exception(f'Unable to delete {dest_config_path}')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue