release candidate for staging. BUGS ARE NOT FIXED YET.

This commit is contained in:
Yusur 2025-06-27 22:28:38 +02:00
parent 1c2bd11212
commit 04ce86a43e
5 changed files with 17 additions and 10 deletions

View file

@ -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']