diff --git a/steam_utils.py b/steam_utils.py index 356b579..a1d72f8 100644 --- a/steam_utils.py +++ b/steam_utils.py @@ -110,8 +110,11 @@ def find_games() -> Dict[str, Path]: os.path.dirname(steam_path), "steamapps", "libraryfolders.vdf" ) - library_folders = parse_library_info(library_vdf_path) - library_folders.append(LibraryFolder(os.path.dirname(steam_path))) + try: + library_folders = parse_library_info(library_vdf_path) + library_folders.append(LibraryFolder(os.path.dirname(steam_path))) + except FileNotFoundError: + return {} games: Dict[str, Path] = {} for library in library_folders: