Add naiad library

This commit is contained in:
Cédric Krier
2026-04-07 17:40:41 +02:00
parent 0e25c97f45
commit 063d384a4e
30 changed files with 2336 additions and 2 deletions
+1 -1
View File
@@ -412,7 +412,7 @@ def user_application(name, json=True):
try:
response = func(request, *args, **kwargs)
except (UserError, UserWarning) as e:
response = JSONBadRequest(e)
raise JSONBadRequest(e)
if not isinstance(response, Response) and json:
response = Response(json_.dumps(response, cls=JSONEncoder),
content_type='application/json')