fixing Python 3.9 compat

This commit is contained in:
Frisk 2024-08-29 18:52:47 +02:00
parent 8b93ae8e68
commit 24888a9ba9

View file

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