From 77e73e9b18f8d608b71ba2b757d756139e23595a Mon Sep 17 00:00:00 2001 From: sysmoon14 <61550824+sysmoon14@users.noreply.github.com> Date: Fri, 9 Feb 2024 14:57:42 +0000 Subject: [PATCH] Fixed issue not adding web links if there was no real launcher --- NSLGameScanner.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/NSLGameScanner.py b/NSLGameScanner.py index 120eb3d..f1c3097 100644 --- a/NSLGameScanner.py +++ b/NSLGameScanner.py @@ -428,7 +428,8 @@ for launcher_name, appid in app_ids.items(): print(f"The app ID for {launcher_name} is {appid}") # Get the app ID for the first launcher that the user chose to install -appid = app_ids.get(launcher_name) +if app_ids: + appid = app_ids.get(launcher_name) #Create User Friendly Symlinks for the launchers @@ -480,7 +481,7 @@ for launcher_name, folder in folder_names.items(): # Check if the NonSteamLaunchers folder exists -if os.path.exists(os.path.join(compatdata_dir, 'NonSteamLaunchers')): +if app_ids and os.path.exists(os.path.join(compatdata_dir, 'NonSteamLaunchers')): # Get the first app ID from the app_ids list first_app_id = next(iter(app_ids.values()))