Fix exception handling
ConnectTimeout exception does not hae title attribute. Change-Id: I7a9ea94b257dcc458d2fb2cd7464470f9377e136
This commit is contained in:
parent
7f15516372
commit
f0b1376330
|
@ -39,6 +39,6 @@ class ValidateDesignResource(base.BaseResource):
|
|||
msg = "Invalid JSON Format: %s" % str(e)
|
||||
result.add_error_message(msg, name=e.title)
|
||||
except Exception as e:
|
||||
result.add_error_message(str(e), name=e.title)
|
||||
result.add_error_message(str(e))
|
||||
|
||||
result.update_response(resp)
|
||||
|
|
Loading…
Reference in New Issue