fix: include actual error details in exception message for message parsing failure

This commit is contained in:
retoor 2025-02-01 15:20:13 +00:00
parent e85f7d748f
commit 756e26eb42

View File

@ -66,12 +66,10 @@ class Bot:
break break
try: try:
pass message = data.message.strip()
except: except:
continue continue
message = data["message"].strip()
if data.username == self.user["username"]: if data.username == self.user["username"]:
try: try:
await self.on_own_message(data) await self.on_own_message(data)