Replaced e.message with str(e)
For logging the exception message: e.message has been deprecated. The preferred way is to call str(e). Change-Id: I9d18661efb77520f541762a776f319b401e6b46f
This commit is contained in:
parent
f469a2ea4b
commit
44a1f58f39
|
@ -184,7 +184,7 @@ class Alarms(alarms_api_v2.AlarmsV2API,
|
|||
else:
|
||||
validation.dimension_value(name_value[1])
|
||||
except Exception as e:
|
||||
raise HTTPUnprocessableEntityError("Unprocessable Entity", e.message)
|
||||
raise HTTPUnprocessableEntityError("Unprocessable Entity", str(e))
|
||||
|
||||
@resource.resource_try_catch_block
|
||||
def _alarm_update(self, tenant_id, alarm_id, new_state, lifecycle_state,
|
||||
|
|
Loading…
Reference in New Issue