mirror of
https://github.com/ModOrganizer2/modorganizer-basic_games.git
synced 2026-07-27 14:07:29 -07:00
catch all exceptions and log the error
This commit is contained in:
+8
-4
@@ -92,11 +92,15 @@ def parse_library_info(library_vdf_path):
|
||||
continue
|
||||
|
||||
try:
|
||||
library_folders.append(
|
||||
LibraryFolder(parts[2].strip().replace("\\\\", "\\"))
|
||||
path = parts[2].strip().replace("\\\\", "\\")
|
||||
library_folders.append(LibraryFolder(path))
|
||||
except Exception as e:
|
||||
print(
|
||||
'Failed to read steam library from "{}", {}'.format(
|
||||
path, repr(e)
|
||||
),
|
||||
file=sys.stderr,
|
||||
)
|
||||
except (FileNotFoundError, ValueError):
|
||||
continue
|
||||
|
||||
return library_folders
|
||||
|
||||
|
||||
Reference in New Issue
Block a user