From e3ad2d8de960601b5f9d015d8a2941d6e0280504 Mon Sep 17 00:00:00 2001 From: derrod Date: Thu, 28 May 2020 22:41:31 +0200 Subject: [PATCH] [core] Fix crash when game config section is missing --- legendary/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legendary/core.py b/legendary/core.py index 54da6fe..50990d5 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -254,7 +254,7 @@ class LegendaryCore: params = [] - if wrapper or (wrapper := self.lgd.config.get(app_name, 'wrapper')): + if wrapper or (wrapper := self.lgd.config.get(app_name, 'wrapper', fallback=None)): params.extend(shlex.split(wrapper)) if os.name != 'nt' and not disable_wine: