Closed zzjjbb closed 1 year ago
这个地方ApiNotAvailable有一个参数 https://github.com/ieew/nonebot_adapter_mirai2/blob/b7562739792670c96a232df58621901808371edf/nonebot/adapters/mirai2/utils.py#L97 但是基类MiraiAdapterException的__init__不接受参数 https://github.com/ieew/nonebot_adapter_mirai2/blob/b7562739792670c96a232df58621901808371edf/nonebot/adapters/mirai2/exception.py#L8-L11 日志是这样的
ApiNotAvailable
MiraiAdapterException
__init__
File "/usr/local/lib/python3.9/site-packages/nonebot/adapters/mirai2/utils.py", line 101, in fetch_response raise ApiNotAvailable('timeout') from None TypeError: __init__() takes 1 positional argument but 2 were given
这个地方
ApiNotAvailable
有一个参数 https://github.com/ieew/nonebot_adapter_mirai2/blob/b7562739792670c96a232df58621901808371edf/nonebot/adapters/mirai2/utils.py#L97 但是基类MiraiAdapterException
的__init__
不接受参数 https://github.com/ieew/nonebot_adapter_mirai2/blob/b7562739792670c96a232df58621901808371edf/nonebot/adapters/mirai2/exception.py#L8-L11 日志是这样的