Skip to content

Commit

Permalink
PICARD-2991: Do not fail to load renaming options page on make_filena…
Browse files Browse the repository at this point in the history
…me errors
  • Loading branch information
phw committed Dec 2, 2024
1 parent d54ea83 commit 24f24e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion picard/ui/scripteditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 24f24e7

Please sign in to comment.