mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
Fix for older python versions
This commit is contained in:
parent
05012c8159
commit
7126885b0e
|
@ -231,7 +231,7 @@ class MessageQueue:
|
||||||
if message and message.metadata.domain is not None:
|
if message and message.metadata.domain is not None:
|
||||||
message.metadata.domain.discord_message_registration()
|
message.metadata.domain.discord_message_registration()
|
||||||
if status == 1:
|
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:
|
if client_error is False:
|
||||||
self.track_discord_error_rate(-0.2) # decay on successful sends
|
self.track_discord_error_rate(-0.2) # decay on successful sends
|
||||||
if method == "POST" and status != 1:
|
if method == "POST" and status != 1:
|
||||||
|
|
Loading…
Reference in a new issue