From 24888a9ba92c3ef2402a8cc7ae86b3d418aff26a Mon Sep 17 00:00:00 2001 From: Frisk Date: Thu, 29 Aug 2024 18:52:47 +0200 Subject: [PATCH] fixing Python 3.9 compat --- src/discord/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discord/queue.py b/src/discord/queue.py index 41a4e20..23ec612 100644 --- a/src/discord/queue.py +++ b/src/discord/queue.py @@ -187,7 +187,7 @@ class MessageQueue: return except (aiohttp.ServerConnectionError, aiohttp.ServerTimeoutError, asyncio.TimeoutError): # 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) return except aiohttp.ClientError as e: