From 63da35889d45459de83a8c66e4fbb7060d92e72c Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Thu, 2 Aug 2018 00:02:51 +0200 Subject: [PATCH] py3: Fix exception handling in wait_on method --- test/base/populators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/base/populators.py b/test/base/populators.py index 2cc1d655913..e6cac2ade8e 100644 --- a/test/base/populators.py +++ b/test/base/populators.py @@ -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: