Skip to content

Commit

Permalink
Merge pull request #26 from Qudix/v2.3.x
Browse files Browse the repository at this point in the history
Fix error when vdf doesn't exist (v2.3.x)
  • Loading branch information
Holt59 authored Jan 3, 2021
2 parents f123a2d + 9a2cb29 commit eb98170
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions steam_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit eb98170

Please sign in to comment.