Skip to content

Commit 9a2cb29

Browse files
committed
Fix error when vdf doesn't exist (v2.3.x)
1 parent f123a2d commit 9a2cb29

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

steam_utils.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,11 @@ def find_games() -> Dict[str, Path]:
110110
os.path.dirname(steam_path), "steamapps", "libraryfolders.vdf"
111111
)
112112

113-
library_folders = parse_library_info(library_vdf_path)
114-
library_folders.append(LibraryFolder(os.path.dirname(steam_path)))
113+
try:
114+
library_folders = parse_library_info(library_vdf_path)
115+
library_folders.append(LibraryFolder(os.path.dirname(steam_path)))
116+
except FileNotFoundError:
117+
return {}
115118

116119
games: Dict[str, Path] = {}
117120
for library in library_folders:

0 commit comments

Comments
 (0)