Commit bd566e8d authored by Pavel Spirek's avatar Pavel Spirek

Fixed bug when exception.msg is None

parent 1be09165
......@@ -120,7 +120,7 @@ class HttpResponse:
pass
try:
err_body["error-message"] = exception.__class__.__name__ + ": " + exception.message
err_body["error-message"] = exception.__class__.__name__ + ": " + str(exception.message)
except AttributeError:
err_body["error-message"] = exception.__class__.__name__ + ": " + str(exception)
......
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