Skip to content

Commit

Permalink
Return if no INI exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Silarn committed Sep 12, 2023
1 parent 1b142d0 commit fe3cd9b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eadesktop_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ def find_games() -> Dict[str, Path]:
if not ea_desktop_settings_path.exists():
return games

user_ini, *_ = list(ea_desktop_settings_path.glob("user_*.ini"))
try:
user_ini, *_ = list(ea_desktop_settings_path.glob("user_*.ini"))
except ValueError:
return games

# The INI file in its current form has no section headers.
# So we wrangle the input to add it all under a fake section.
Expand Down

0 comments on commit fe3cd9b

Please sign in to comment.