From 8b37414f9f7fd48e0beda2bb846918a39602eb6f Mon Sep 17 00:00:00 2001 From: Jeroen Ruigrok van der Werven Date: Fri, 29 Dec 2023 11:16:20 +0100 Subject: [PATCH] Fix ElementTree future warning (#130) --- eadesktop_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eadesktop_utils.py b/eadesktop_utils.py index 52757f0..747c408 100644 --- a/eadesktop_utils.py +++ b/eadesktop_utils.py @@ -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: