[RSS] Add connection timeout catch for rss find

This commit is contained in:
aikaterna
2020-12-25 09:59:23 -08:00
committed by GitHub
parent 1ee9958594
commit acb8756ec1

View File

@@ -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: