mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-01-19 17:58:26 +08:00
🐛 fix action failed info display error
This commit is contained in:
parent
5cc5375cb5
commit
b446fcc929
@ -28,7 +28,8 @@ class ActionFailed(BaseActionFailed, CQHTTPAdapterException):
|
|||||||
self.info = kwargs
|
self.info = kwargs
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return f"<ActionFailed " + ", ".join(f"{k=}" for k in self.info) + ">"
|
return f"<ActionFailed " + ", ".join(
|
||||||
|
f"{k}={v}" for k, v in self.info.items()) + ">"
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.__repr__()
|
return self.__repr__()
|
||||||
|
Loading…
Reference in New Issue
Block a user