Skip to content

Commit eb98170

Browse files
authored
Merge pull request #26 from Qudix/v2.3.x
Fix error when vdf doesn't exist (v2.3.x)
2 parents f123a2d + 9a2cb29 commit eb98170

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)