Fix error when vdf doesn't exist (v2.3.x)

This commit is contained in:
Qudix
2021-01-02 19:08:54 -06:00
parent f123a2dd31
commit 9a2cb291f5
+5 -2
View File
@@ -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: