Skip to content

Commit

Permalink
[Discord] Handle ClientOSError in Twitter task
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Oct 18, 2023
1 parent 17456fc commit 0f8fced
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Discord/cogs/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0f8fced

Please sign in to comment.