From d29da7b8f840b53ec8c5121326563c7e20c3e69e Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Fri, 10 Dec 2021 21:37:22 +0100 Subject: [PATCH] Fix check for existence of image. --- bots/sledrun_wikitext_to_json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/sledrun_wikitext_to_json.py b/bots/sledrun_wikitext_to_json.py index 8771f0c..b7ba7a7 100644 --- a/bots/sledrun_wikitext_to_json.py +++ b/bots/sledrun_wikitext_to_json.py @@ -90,7 +90,7 @@ class SledrunWikiTextToJsonBot( v = rbb['Bild'] if v is not None: image_page = Page(self.site, v, ns=BuiltinNamespace.FILE) - if image_page.exists(): + if not image_page.exists(): warning(f"{image_page.title()} does not exist.") sledrun_json['image'] = v -- 2.39.5