Traceback (most recent call last):


 "D:\项目\fastAPI-comment\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 384, in run_asgi

result = await app(self.scope, self.receive, self.send)


 "D:\项目\fastAPI-comment\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 45, in __call__

return await self.app(scope, receive, send)


 "D:\项目\fastAPI-comment\venv\lib\site-packages\fastapi\applications.py", line 165, in __call__

await super().__call__(scope, receive, send)


 "D:\项目\fastAPI-comment\venv\lib\site-packages\starlette\applications.py", line 102, in __call__

await self.middleware_stack(scope, receive, send)


 "D:\项目\fastAPI-comment\venv\lib\site-packages\starlette\middleware\errors.py", line 181, in __call__

raise exc from None


 "D:\项目\fastAPI-comment\venv\lib\site-packages\starlette\middleware\errors.py", line 159, in __call__

await self.app(scope, receive, _send)


 "D:\项目\fastAPI-comment\venv\lib\site-packages\starlette\exceptions.py", line 82, in __call__

raise exc from None


 "D:\项目\fastAPI-comment\venv\lib\site-packages\starlette\exceptions.py", line 71, in __call__

await self.app(scope, receive, sender)


 "D:\项目\fastAPI-comment\venv\lib\site-packages\starlette\routing.py", line 550, in __call__

await route.handle(scope, receive, send)


 "D:\项目\fastAPI-comment\venv\lib\site-packages\starlette\routing.py", line 227, in handle

await self.app(scope, receive, send)


 "D:\项目\fastAPI-comment\venv\lib\site-packages\starlette\routing.py", line 41, in app

response = await func(request)


 "D:\项目\fastAPI-comment\venv\lib\site-packages\fastapi\routing.py", line 196, in app

raw_response = await run_endpoint_function(


 "D:\项目\fastAPI-comment\venv\lib\site-packages\fastapi\routing.py", line 150, in run_endpoint_function

return await run_in_threadpool(dependant.call, **values)


 "D:\项目\fastAPI-comment\venv\lib\site-packages\starlette\concurrency.py", line 34, in run_in_threadpool

return await loop.run_in_executor(None, func, *args)


 "c:\program files\python38\lib\concurrent\futures\thread.py", line 57, in run

result = self.fn(*self.args, **self.kwargs)


 "d:\项目\fastAPI-comment\api\comment.py", line 11, in get_AllComment

allCommentJson = json.loads(dbSchemes.inquire_AllComment())


 "<string>", line 2, in inquire_AllComment


 "D:\项目\fastAPI-comment\venv\lib\site-packages\pony\orm\core.py", line 528, in new_func

result = func(*args, **kwargs)


 "d:\项目\fastAPI-comment\database\schemes.py", line 6, in inquire_AllComment

commentList = Comment.select(lambda c: c.article != None)[:]
AttributeError: 'function' object has no attribute 'select'

Traceback (most recent call last):


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py", line 1177, in _event_to_service_call

await service_handler.func(service_call)


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/configurator.py", line 221, in async_handle_service_call

call.data.get(ATTR_FIELDS, {}))


 "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__

yield self
# This tells Task to wait for completion.


 "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup

future.result()


 "/usr/lib/python3.5/asyncio/futures.py", line 293, in result

raise self._exception


 "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run

result = self.fn(*self.args, **self.kwargs)


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/homekit_controller/__init__.py", line 218, in device_config_callback

self.accessory_setup()


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/homekit_controller/__init__.py", line 139, in accessory_setup

data = self.get_json('/accessories')


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/homekit_controller/__init__.py", line 166, in get_json

response = self.securecon.get(target)
AttributeError: 'NoneType' object has no attribute 'get'
