From 51377e8548076f437d81d8a6bdbb5f72eb05b7cc Mon Sep 17 00:00:00 2001 From: derrod Date: Wed, 5 Jul 2023 11:49:59 +0200 Subject: [PATCH] [cli] Fix info command for apps without custom attributes --- legendary/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legendary/cli.py b/legendary/cli.py index 008d9dc..d06b088 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -1676,7 +1676,7 @@ class LegendaryCLI: # Find custom launch options, if available launch_options = [] i = 1 - while f'extraLaunchOption_{i:03d}_Name' in game.metadata['customAttributes']: + while f'extraLaunchOption_{i:03d}_Name' in game.metadata.get('customAttributes', {}): launch_options.append(( game.metadata['customAttributes'][f'extraLaunchOption_{i:03d}_Name']['value'], game.metadata['customAttributes'][f'extraLaunchOption_{i:03d}_Args']['value']