Commit 1d88b237 authored by Pavel Spirek's avatar Pavel Spirek

Minor change in error formatting

parent 909f377a
......@@ -121,7 +121,10 @@ class HttpResponse:
except AttributeError:
err_body["error-message"] = epretty(exception)
err_body["error-message"] = exception.message
except AttributeError:
err_body["error-message"] = str(exception)
if err_apptag is not None:
err_body["error-app-tag"] = err_apptag
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment