server/errors: fix serializing errors

This commit is contained in:
rr- 2016-09-10 15:28:32 +02:00
parent f31f67bfec
commit 42b7a9b94f

View file

@ -107,6 +107,7 @@ def application(env, start_response):
'title': ex.title,
'description': ex.description,
}
for key, value in ex.extra_fields.items():
blob[key] = value
if ex.extra_fields is not None:
for key, value in ex.extra_fields.items():
blob[key] = value
return (_dump_json(blob).encode('utf-8'),)