Skip to content

Commit

Permalink
Fix #856
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Jun 12, 2019
1 parent 7d64f97 commit 6a90231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IM/REST.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def get_ex_error(ex):
"""
Return a secure string with the error of the exception in Py2 and Py3
"""
return getattr(ex, 'message', get_ex_error(ex) if len(ex.args) else repr(ex))
return getattr(ex, 'message', ex.args[0] if len(ex.args) else repr(ex))


@app.route('/infrastructures/:infid', method='DELETE')
Expand Down

0 comments on commit 6a90231

Please sign in to comment.