fix warnings

This commit is contained in:
jxxghp
2025-12-24 18:54:38 +08:00
parent a70bf18770
commit 0f8ceb0fac
3 changed files with 28 additions and 23 deletions

View File

@@ -91,8 +91,8 @@ class DiscordModule(_ModuleBase, _MessageBase[Discord]):
return None
try:
msg_json: dict = json.loads(body)
except Exception as err:
logger.debug(f"解析 Discord 消息失败:{str(err)}")
except Exception as e:
logger.debug(f"解析 Discord 消息失败:{str(e)}")
return None
if not msg_json: