From f2b948dba64680131ccad2fa4ba86b31d94d7e2e Mon Sep 17 00:00:00 2001 From: Frisk Date: Thu, 29 Aug 2024 23:11:19 +0200 Subject: [PATCH] Fix Fandom recent change in API --- src/bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bot.py b/src/bot.py index 3778cdf..76200d6 100644 --- a/src/bot.py +++ b/src/bot.py @@ -464,6 +464,8 @@ async def discussion_handler(): comment_events = [] targets = await generate_targets(db_wiki["wiki"], "AND NOT postid = '-1'") for post in discussion_feed: + if not post: + continue if post["_embedded"]["thread"][0]["containerType"] == "ARTICLE_COMMENT" and post["id"] > db_wiki["postid"]: comment_events.append(post["forumId"]) comment_pages: dict = {}