From d4c44da1263a89f816b97fb3c02e36245bfb2094 Mon Sep 17 00:00:00 2001 From: MarkusRost <2701034-MarkusRost@users.noreply.gitlab.com> Date: Fri, 22 Jan 2021 10:29:44 +0000 Subject: [PATCH] Fix feeds --- src/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bot.py b/src/bot.py index 59839a8..18577d9 100644 --- a/src/bot.py +++ b/src/bot.py @@ -374,9 +374,9 @@ async def discussion_handler(): continue # ignore this wiki if it throws errors try: discussion_feed_resp = await feeds_response.json(encoding="UTF-8") - if "title" in discussion_feed_resp: + if "error" in discussion_feed_resp: error = discussion_feed_resp["error"] - if error == "site doesn't exists": # Discussions disabled + if error == "NotFoundException": # Discussions disabled if db_wiki["rcid"] != -1: # RC feed is disabled db_cursor.execute("UPDATE rcgcdw SET postid = ? WHERE wiki = ?", ("-1", db_wiki["wiki"],))