[core] Fix crash when game config section is missing

This commit is contained in:
derrod 2020-05-28 22:41:31 +02:00
parent 9867c5f492
commit e3ad2d8de9

View file

@ -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: