mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
Fix a crash in message sending part
This commit is contained in:
parent
47c5aabd88
commit
351e034e47
|
@ -219,7 +219,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} 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:
|
||||
|
|
Loading…
Reference in a new issue