mirror of
https://github.com/ModOrganizer2/modorganizer-basic_games.git
synced 2026-07-27 14:07:29 -07:00
Fix ElementTree future warning (#130)
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ def find_games() -> Dict[str, Path]:
|
||||
# consider these.
|
||||
content_id = root.find(".//contentIDs/contentID[1]")
|
||||
|
||||
if content_id and content_id.text:
|
||||
if content_id is not None and content_id.text:
|
||||
game_id = content_id.text
|
||||
games[game_id] = game_dir
|
||||
except FileNotFoundError:
|
||||
|
||||
Reference in New Issue
Block a user