Fix ElementTree future warning (#130)

This commit is contained in:
Jeroen Ruigrok van der Werven
2023-12-29 11:16:20 +01:00
committed by GitHub
parent 364311023e
commit 8b37414f9f
+1 -1
View File
@@ -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: