Closed Tamamoimoto closed 2 years ago
感觉Optional
的规则怎么偷偷改了呢,我之前用咋都不报错🤔
改一下data_source.py
Line 100为:
def _is_food_exists(self, _food: str, gid: Optional[str] = None) -> FoodLoc:
或者升级到v0.3.3a2
:
pip/nb install nonebot_plugin_what2eat==0.3.3a2
目前v0.3.3a2
还只是pre-release,不确保稳定,但是加入了新功能
v0.3.3已发布
使用"加菜 西北风",机器人无回复后台报错。 07-30 18:59:59 [ERROR] nonebot | Running matcher <Matcher from nonebot_plugin_what2eat, type=message, priority=15, temp=False> failed. Traceback (most recent call last): File "", line 1, in
File "/usr/lib/python3.9/multiprocessing/spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "/usr/lib/python3.9/multiprocessing/spawn.py", line 129, in _main
return self._bootstrap(parent_sentinel)
File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.9/dist-packages/uvicorn/subprocess.py", line 76, in subprocess_started
target(sockets=sockets)
File "/usr/local/lib/python3.9/dist-packages/uvicorn/server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.9/dist-packages/nonebot/message.py", line 146, in _check_matcher
await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)