Skip to content

Commit

Permalink
Fix ElementTree future warning (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashemedai authored Dec 29, 2023
1 parent 3643110 commit 8b37414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eadesktop_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8b37414

Please sign in to comment.