From 0f8fceda91b630fb748bb44d15a790a86eed657f Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 18 Oct 2023 08:02:23 -0500 Subject: [PATCH] [Discord] Handle ClientOSError in Twitter task --- Discord/cogs/twitter.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Discord/cogs/twitter.py b/Discord/cogs/twitter.py index 5a388eb684..eeaee73543 100644 --- a/Discord/cogs/twitter.py +++ b/Discord/cogs/twitter.py @@ -607,9 +607,7 @@ async def check_tweets(self): except discord.DiscordServerError as e: self.bot.print(f"Twitter Task Discord Server Error: {e}") await asyncio.sleep(60) - except ( - aiohttp.ServerDisconnectedError, aiohttp.ClientConnectorError - ): + except aiohttp.ClientOSError: # TODO: Log await asyncio.sleep(1) except Exception as e: