From d758c53b412ab8bcd5927beba13ff5a56b266c17 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Fri, 26 Jan 2024 11:09:50 -0500 Subject: Fixed unhandled FileNotFoundError during restore process --- bazarr/utilities/backup.py | 2 ++ 1 file changed, 2 insertions(+) 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}') -- cgit v1.2.3