From 37171a170777ff77bde62bf0a7c11692d2c5af6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Tue, 20 Dec 2022 01:02:36 +0100 Subject: [PATCH] Fix /add --- discord_rss_bot/main.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/discord_rss_bot/main.py b/discord_rss_bot/main.py index ee0ebc5..781eebf 100644 --- a/discord_rss_bot/main.py +++ b/discord_rss_bot/main.py @@ -181,9 +181,6 @@ async def create_feed(feed_url: str = Form(), webhook_dropdown: str = Form()) -> if hook["name"] == webhook_dropdown: webhook_url = hook["url"] break - else: - # TODO: Show this error on the page. - return {"error": "Webhook not found."} if webhook_url is None: # TODO: Show this error on the page.