summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2024-01-26 11:09:50 -0500
committerGitHub <[email protected]>2024-01-26 11:09:50 -0500
commitd758c53b412ab8bcd5927beba13ff5a56b266c17 (patch)
tree250011a0edc0049f119502c7cf5bed9804f3fb44
parent990448b06e6df9f2728d98a9a14df5f2b378b00a (diff)
downloadbazarr-d758c53b412ab8bcd5927beba13ff5a56b266c17.tar.gz
bazarr-d758c53b412ab8bcd5927beba13ff5a56b266c17.zip
Fixed unhandled FileNotFoundError during restore processv1.4.1-beta.19
-rw-r--r--bazarr/utilities/backup.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bazarr/utilities/backup.py b/bazarr/utilities/backup.py
index 314200a02..8088a50a2 100644
--- a/bazarr/utilities/backup.py
+++ b/bazarr/utilities/backup.py
@@ -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}')