mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
fixing Python 3.9 compat
This commit is contained in:
parent
8b93ae8e68
commit
24888a9ba9
|
@ -187,7 +187,7 @@ class MessageQueue:
|
||||||
return
|
return
|
||||||
except (aiohttp.ServerConnectionError, aiohttp.ServerTimeoutError, asyncio.TimeoutError):
|
except (aiohttp.ServerConnectionError, aiohttp.ServerTimeoutError, asyncio.TimeoutError):
|
||||||
# Retry on next Discord message sent attempt
|
# Retry on next Discord message sent attempt
|
||||||
logger.debug(f"Received timeout or connection error when sending a Discord message for {msg.wiki.script_url if hasattr(msg, "wiki") else "PATCH OR DELETE MESSAGE"}. Current delay: {self.discord_error_rate_tracker}")
|
logger.debug(f"Received timeout or connection error when sending a Discord message for {msg.wiki.script_url if hasattr(msg, 'wiki') else 'PATCH OR DELETE MESSAGE'}. Current delay: {self.discord_error_rate_tracker}")
|
||||||
self.track_discord_error_rate(1)
|
self.track_discord_error_rate(1)
|
||||||
return
|
return
|
||||||
except aiohttp.ClientError as e:
|
except aiohttp.ClientError as e:
|
||||||
|
|
Loading…
Reference in a new issue