From 24f24e7db68e9b373faea74f14d8df66273fde26 Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Sun, 1 Dec 2024 15:45:48 +0100 Subject: [PATCH] PICARD-2991: Do not fail to load renaming options page on make_filename errors --- picard/ui/scripteditor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picard/ui/scripteditor.py b/picard/ui/scripteditor.py index 3244371ee5..d6e4f55859 100644 --- a/picard/ui/scripteditor.py +++ b/picard/ui/scripteditor.py @@ -170,7 +170,7 @@ def _example_to_filename(self, file): if not self.settings['move_files']: return os.path.basename(filename_before), os.path.basename(filename_after) return filename_before, filename_after - except (ScriptError, TypeError, WinPathTooLong): + except (FileNotFoundError, PermissionError, ScriptError, TypeError, WinPathTooLong): return "", "" def update_example_listboxes(self, before_listbox, after_listbox):