server/errors: fix serializing errors
This commit is contained in:
parent
f31f67bfec
commit
42b7a9b94f
1 changed files with 3 additions and 2 deletions
|
@ -107,6 +107,7 @@ def application(env, start_response):
|
||||||
'title': ex.title,
|
'title': ex.title,
|
||||||
'description': ex.description,
|
'description': ex.description,
|
||||||
}
|
}
|
||||||
|
if ex.extra_fields is not None:
|
||||||
for key, value in ex.extra_fields.items():
|
for key, value in ex.extra_fields.items():
|
||||||
blob[key] = value
|
blob[key] = value
|
||||||
return (_dump_json(blob).encode('utf-8'),)
|
return (_dump_json(blob).encode('utf-8'),)
|
||||||
|
|
Loading…
Reference in a new issue