mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
[cli] Fix info command for apps without custom attributes
This commit is contained in:
parent
07a16f7b84
commit
51377e8548
|
@ -1676,7 +1676,7 @@ class LegendaryCLI:
|
||||||
# Find custom launch options, if available
|
# Find custom launch options, if available
|
||||||
launch_options = []
|
launch_options = []
|
||||||
i = 1
|
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((
|
launch_options.append((
|
||||||
game.metadata['customAttributes'][f'extraLaunchOption_{i:03d}_Name']['value'],
|
game.metadata['customAttributes'][f'extraLaunchOption_{i:03d}_Name']['value'],
|
||||||
game.metadata['customAttributes'][f'extraLaunchOption_{i:03d}_Args']['value']
|
game.metadata['customAttributes'][f'extraLaunchOption_{i:03d}_Args']['value']
|
||||||
|
|
Loading…
Reference in a new issue