diff --git a/NSLGameScanner.py b/NSLGameScanner.py index a7f2cf2..7702f2f 100644 --- a/NSLGameScanner.py +++ b/NSLGameScanner.py @@ -502,7 +502,7 @@ if os.path.exists(os.path.join(compatdata_dir, 'NonSteamLaunchers')): # Print the existing shortcuts print("Existing Shortcuts:") for shortcut in shortcuts['shortcuts'].values(): - if appname is None: + if shortcut.get('appname') is None: print(f"AppID for {shortcut.get('AppName')}: {shortcut.get('appid')}") else: print(f"AppID for {shortcut.get('appname')}: {shortcut.get('appid')}")