Compare commits
3 Commits
dd648bc50f
...
3164c446c6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3164c446c6 | ||
|
|
57ac6bcdd3 | ||
|
|
bd4a4bd6ac |
@@ -243,6 +243,7 @@ class App:
|
||||
|
||||
await writer.drain()
|
||||
except Exception as e:
|
||||
raise e
|
||||
print(f"Internal Server Error: {e}")
|
||||
finally:
|
||||
writer.close()
|
||||
@@ -314,7 +315,7 @@ def JSONAPI(func):
|
||||
and isinstance(result[1], dict)
|
||||
and isinstance(result[0], int)
|
||||
):
|
||||
return JSONResponse(result[1], result[0])
|
||||
return JSONResponse(kwargs["request"], result[1], result[0])
|
||||
raise RuntimeError("Return value of JSONAPI route is not a dictionary")
|
||||
return JSONResponse(kwargs["request"], result)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user