From 6b4cf6558b0ea5c24d718999ef6e116e27dc523e Mon Sep 17 00:00:00 2001 From: derrod Date: Thu, 9 Sep 2021 09:55:48 +0200 Subject: [PATCH] [core] Warn if parsing manifest-defined launch parameters fails --- legendary/core.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/legendary/core.py b/legendary/core.py index 493b69a..5f7bfca 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -482,7 +482,11 @@ class LegendaryCore: params.append(game_exe) if install.launch_parameters: - params.extend(shlex.split(install.launch_parameters, posix=False)) + try: + params.extend(shlex.split(install.launch_parameters, posix=False)) + except ValueError as e: + self.log.warning(f'Parsing predefined launch parameters failed with: {e!r}, ' + f'input: {install.launch_parameters}') params.extend([ '-AUTH_LOGIN=unused',