[2020-06-02 17:25:15 handler.py:wrapper:24 INFO] Error, trying to run raw_query coroutinewith wrong query class select * from operationlog
[2020-06-02 17:25:15 handler.py:wrapper:25 ERROR] Traceback (most recent call last):
File "W:\Project\package-management\package_management\handler.py", line 22, in wrapper
await fun(handler, *args, **kwargs)
File "W:\Project\package-management\apps\package\handler.py", line 99, in get
code, msg, data = await PackageService.get_package_detail(self, package_id)
File "W:\Project\package-management\apps\package\services.py", line 90, in get_package_detail
res = await peewee_async.execute(sql)
File "C:\Users\wanhw\Envs\package_management\lib\site-packages\peewee_async.py", line 430, in execute
return (await coroutine(query))
File "C:\Users\wanhw\Envs\package_management\lib\site-packages\peewee_async.py", line 675, in raw_query
"with wrong query class %s" % str(query))
AssertionError: Error, trying to run raw_query coroutinewith wrong query class select * from operationlog
[2020-06-02 17:25:15 web.py:log_request:2246 ERROR] 500 GET /package/packages/17 (127.0.0.1) 3.99ms
sql = """select * from operationlog""" res = await peewee_async.execute(sql)