mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-06-17 18:08:05 +00:00
🐛 Fix ding adapter exception
This commit is contained in:
parent
da62e012c2
commit
3638da7f2d
@ -10,7 +10,7 @@ class DingAdapterException(AdapterException):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
super.__init__("DING")
|
super().__init__("DING")
|
||||||
|
|
||||||
|
|
||||||
class ApiError(DingAdapterException):
|
class ApiError(DingAdapterException):
|
||||||
@ -22,6 +22,7 @@ class ApiError(DingAdapterException):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, errcode: int, errmsg: str):
|
def __init__(self, errcode: int, errmsg: str):
|
||||||
|
super().__init__()
|
||||||
self.errcode = errcode
|
self.errcode = errcode
|
||||||
self.errmsg = errmsg
|
self.errmsg = errmsg
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user