Skip to content

Commit

Permalink
AAAAA I hate bot lists
Browse files Browse the repository at this point in the history
  • Loading branch information
paris-ci committed Jul 27, 2023
1 parent d48d14b commit 504c817
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/cogs/bots_list_and_voting.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,14 @@ async def post_stats(self, *args, **kwargs):
self.bot.logger.warning(
f"Push stats to {bot_list.name}: resp [TIMEOUT]"
)
except aiohttp.ClientConnectorError as e:
self.bot.logger.warning(
f"Push stats to {bot_list.name}: resp [CONNECTION ERROR] {e}"
)
except Exception as e:
self.bot.logger.error(
f"Push stats to {bot_list.name}: resp [ERROR/UNHANDLED] {e}"
)
else:
text = (await resp.text())[:100]
status = resp.status
Expand Down

0 comments on commit 504c817

Please sign in to comment.