From acb8756ec1b5a5e47584c2f441646c85183f668a Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Fri, 25 Dec 2020 09:59:23 -0800 Subject: [PATCH] [RSS] Add connection timeout catch for rss find --- rss/rss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rss/rss.py b/rss/rss.py index 613e637..6cecc55 100644 --- a/rss/rss.py +++ b/rss/rss.py @@ -668,7 +668,7 @@ class RSS(commands.Cog): try: async with session.get(website_url) as response: soup = BeautifulSoup(await response.text(), "html.parser") - except aiohttp.client_exceptions.ClientConnectorError: + except (aiohttp.client_exceptions.ClientConnectorError, aiohttp.client_exceptions.ClientPayloadError): await ctx.send("I can't reach that website.") return except aiohttp.client_exceptions.InvalidURL: