kaguya233qwq / nonebot_plugin_kfcrazy Goto Github PK
View Code? Open in Web Editor NEWnonebot2肯德基查询插件,输入地区即可查询全国店铺的数据,支持疯狂星期四
License: GNU General Public License v3.0
nonebot2肯德基查询插件,输入地区即可查询全国店铺的数据,支持疯狂星期四
License: GNU General Public License v3.0
Running Matcher(type='message', module=nonebot_plugin_kfcrazy) failed.
Traceback (most recent call last):
File "", line 17, in
File "/home/qbot/.venv/lib/python3.8/site-packages/nonebot/init.py", line 273, in run
get_driver().run(*args, **kwargs)
File "/home/qbot/.venv/lib/python3.8/site-packages/nonebot/drivers/fastapi.py", line 187, in run
uvicorn.run(
File "/home/qbot/.venv/lib/python3.8/site-packages/uvicorn/main.py", line 569, in run
server.run()
File "/home/qbot/.venv/lib/python3.8/site-packages/uvicorn/server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/home/qbot/.venv/lib/python3.8/site-packages/nonebot/message.py", line 141, in _check_matcher
await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)
File "/home/qbot/.venv/lib/python3.8/site-packages/nonebot/message.py", line 187, in _run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "/home/qbot/.venv/lib/python3.8/site-packages/nonebot/internal/matcher/matcher.py", line 732, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "/home/qbot/.venv/lib/python3.8/site-packages/nonebot/internal/matcher/matcher.py", line 707, in simple_run
await handler(
File "/home/qbot/.venv/lib/python3.8/site-packages/nonebot/dependencies/init.py", line 108, in call
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "/home/qbot/.venv/lib/python3.8/site-packages/nonebot_plugin_kfcrazy/init.py", line 254, in store_handler
menu_list, Food = await KFC().get_menu(store_id)
File "/home/qbot/.venv/lib/python3.8/site-packages/nonebot_plugin_kfcrazy/init.py", line 158, in get_menu
menu_detail = resp_json['data']['data']
KeyError: 'data'
11-12 16:56:12 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_kfcrazy) failed.
Traceback (most recent call last):
File "/usr/local/bin/nb", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/nb_cli/commands/main.py", line 30, in run
run_bot(file, app)
File "/usr/local/lib/python3.9/dist-packages/nb_cli/handlers/deploy.py", line 25, in run_bot
nonebot.run(app=f"{module_name}:{app}")
File "/usr/local/lib/python3.9/dist-packages/nonebot/__init__.py", line 273, in run
get_driver().run(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/nonebot/drivers/fastapi.py", line 172, in run
uvicorn.run(
File "/usr/local/lib/python3.9/dist-packages/uvicorn/main.py", line 575, in run
server.run()
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 142, in _check_matcher
await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)
> File "/usr/local/lib/python3.9/dist-packages/nonebot/message.py", line 186, in _run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "/usr/local/lib/python3.9/dist-packages/nonebot/internal/matcher.py", line 716, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "/usr/local/lib/python3.9/dist-packages/nonebot/internal/matcher.py", line 688, in simple_run
await handler(
File "/usr/local/lib/python3.9/dist-packages/nonebot/dependencies/__init__.py", line 108, in __call__
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "/usr/local/lib/python3.9/dist-packages/nonebot_plugin_kfcrazy/__init__.py", line 222, in city_handler
await KFC().get_city_id(city)
File "/usr/local/lib/python3.9/dist-packages/nonebot_plugin_kfcrazy/__init__.py", line 68, in get_city_id
district_name = city['districtName']
KeyError: 'districtName'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.