Fix for older python versions

This commit is contained in:
Frisk 2024-12-13 16:09:29 +01:00
parent 05012c8159
commit 7126885b0e

View file

@ -231,7 +231,7 @@ class MessageQueue:
if message and message.metadata.domain is not None:
message.metadata.domain.discord_message_registration()
if status == 1:
logger.debug(f"Ignoring message for {msg.wiki.script_url if hasattr(msg, "wiki") else msg.__repr__()} because the returned status is 1.")
logger.debug(f"Ignoring message for {msg.wiki.script_url if hasattr(msg, 'wiki') else msg.__repr__()} because the returned status is 1.")
if client_error is False:
self.track_discord_error_rate(-0.2) # decay on successful sends
if method == "POST" and status != 1: