py3: Fix exception handling in wait_on method

This commit is contained in:
mvdbeek
2018-08-02 13:21:19 +02:00
parent e91d892a9b
commit 63da35889d
+1 -1
View File
@@ -982,7 +982,7 @@ def wait_on_state(state_func, desc="state", skip_states=["running", "queued", "n
return wait_on(get_state, desc=desc, timeout=timeout)
except TimeoutAssertionError as e:
response = state_func()
raise TimeoutAssertionError("%s Current response containing state [%s]." % (e.message, response.json()))
raise TimeoutAssertionError("%s Current response containing state [%s]." % (str(e), response.json()))
class GiPostGetMixin: