noneplugin / nonebot-plugin-ddcheck

NoneBot2 成分姬插件
MIT License
54 stars 13 forks source link

查成分出错 #27

Closed CaffuChin0 closed 1 year ago

CaffuChin0 commented 1 year ago

QQ截图20230213093352

是否我饼干设置出问题,我翻阅https://github.com/noneplugin/nonebot-plugin-ddcheck/issues/18设置了SESSDATA后依旧无法查询

bilibili_cookie: str = "SESSDATA=c05996bf%2C1691803051%2C2c23c%2A21"

错误信息: 02-13 09:34:55 [WARNING] nonebot_plugin_ddcheck | Traceback (most recent call last): File "C:\Users\Administrator\Desktop\zhenxun_bot\plugins\nonebot_pluginddcheck__init__.py", line 33, in res = await get_reply(text) File "C:\Users\Administrator\Desktop\zhenxun_bot\plugins\nonebot_plugin_ddcheck\data_source.py", line 154, in get_reply uid = await get_uid_by_name(name) File "C:\Users\Administrator\Desktop\zhenxun_bot\plugins\nonebot_plugin_ddcheck\data_source.py", line 94, in get_uid_by_name for user in result["data"]["result"]: TypeError: 'NoneType' object is not subscriptable

Version:0.1

MeetWq commented 1 year ago

我看你的报错,似乎和现在的代码对不上,先更新一下试试

CaffuChin0 commented 1 year ago

没问题了,谢谢大佬