nonebot-plugin-covid19-news
nonebot-plugin-covid19-news copied to clipboard
ValueError: There are no bots to get.
12-08 00:30:00 [INFO] nonebot_plugin_covid19_news | [疫情数据更新]
12-08 00:30:01 [INFO] nonebot_plugin_covid19_news | [疫情数据更新]
12-08 00:30:01 [ERROR] apscheduler | Job "update (trigger: cron[minute='*/30', second='0'], next run at: 2022-12-08 01:00:00 CST)" raised an exception
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\fwq\LittlePaimon\bot.py", line 40, in
File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\littlepaimon-EfRlD-3A-py3.10\lib\site-packages\apscheduler\executors\base_py3.py", line 30, in run_coroutine_job retval = await job.func(*job.args, **job.kwargs) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\littlepaimon-EfRlD-3A-py3.10\lib\site-packages\nonebot_plugin_covid19_news_init_.py", line 176, in update bot = get_bot() File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\littlepaimon-EfRlD-3A-py3.10\lib\site-packages\nonebot_init_.py", line 158, in get_bot raise ValueError("There are no bots to get.") ValueError: There are no bots to get.
bot掉线了
bot掉线了
没掉线,都正常着的,gocq后台一直挂着的
其他功能正常使用吗
能,就定时检查的时候有时候会这样
那应该是gocq断线之后会尝试重连,但刚好那段时间定时检查get_bot()
获取不了bot的内容。
之后的更新再修复这个bug。