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()))