From 3638da7f2d9c97ce23c43fcd124a51026379f05b Mon Sep 17 00:00:00 2001 From: Artin Date: Thu, 3 Dec 2020 12:22:39 +0800 Subject: [PATCH] :bug: Fix ding adapter exception --- nonebot/adapters/ding/exception.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nonebot/adapters/ding/exception.py b/nonebot/adapters/ding/exception.py index 7b845afe..37630028 100644 --- a/nonebot/adapters/ding/exception.py +++ b/nonebot/adapters/ding/exception.py @@ -10,7 +10,7 @@ class DingAdapterException(AdapterException): """ def __init__(self) -> None: - super.__init__("DING") + super().__init__("DING") class ApiError(DingAdapterException): @@ -22,6 +22,7 @@ class ApiError(DingAdapterException): """ def __init__(self, errcode: int, errmsg: str): + super().__init__() self.errcode = errcode self.errmsg = errmsg