This commit is contained in:
kramo
2023-03-25 00:50:17 +01:00
parent 41c97e1af7
commit 030c220d7e
2 changed files with 3 additions and 5 deletions

View File

@@ -206,13 +206,13 @@ def create_details_window(parent_widget, game_id=None):
final_executable_split = shlex.split(
final_executable, comments=False, posix=True
)
except Exception as e:
except ValueError as exception:
create_dialog(
window,
_("Couldn't Add Game")
if game_id is None
else _("Couldn't Apply Preferences"),
f'{_("Executable")}: {e}.', # e = Shell parsing error message. Not translatable.
f'{_("Executable")}: {exception}.',
)
return