release candidate for staging. BUGS ARE NOT FIXED YET.
This commit is contained in:
parent
1c2bd11212
commit
04ce86a43e
5 changed files with 17 additions and 10 deletions
|
|
@ -54,7 +54,10 @@ class Api(_Api):
|
|||
Notably, all JSON is whitespace-free and .message is remapped to .error
|
||||
"""
|
||||
def handle_error(self, e):
|
||||
### XXX apparently this handle_error does not get called AT ALL.
|
||||
print(e)
|
||||
res = super().handle_error(e)
|
||||
print(res)
|
||||
if isinstance(res, Mapping) and 'message' in res:
|
||||
res['error'] = res['message']
|
||||
del res['message']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue