From 6a902319d018d30edc378cab9b652054ba73ea45 Mon Sep 17 00:00:00 2001 From: micafer Date: Wed, 12 Jun 2019 12:03:57 +0200 Subject: [PATCH] Fix #856 --- IM/REST.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IM/REST.py b/IM/REST.py index 1c5262c20..d9739b894 100644 --- a/IM/REST.py +++ b/IM/REST.py @@ -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')