mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
revert: fix: 尝试修复记录日志时出现的 'str' object has no attribute 'status'问题
This commit is contained in:
parent
635ae720b9
commit
da0737ecfd
2
main.py
2
main.py
@ -72,7 +72,7 @@ async def handle_before_request(app, handler):
|
||||
resp = await handler(request)
|
||||
if (isinstance(resp, str)):
|
||||
resp = Response(body = resp, content_type='text/plain', status = 200)
|
||||
elif (isinstance(resp, dict):
|
||||
elif (isinstance(resp, dict)):
|
||||
resp = handleResult(resp)
|
||||
elif (not isinstance(resp, Response)):
|
||||
resp = Response(body = str(resp), content_type='text/plain', status = 200)
|
||||
|
Loading…
x
Reference in New Issue
Block a user