migration to Python3: fix printing exception message
[osm/osmclient.git] / osmclient / common / wait.py
index 488bc61..96cb851 100644 (file)
@@ -193,5 +193,5 @@ def wait_for_status(entity_label, entity_id, timeout, apiUrlStatus, http_cmd, de
     except ClientException as exc:
         message="Operation failed for {}:\nerror:\n{}".format(
             entity_label,
-            exc.message)
+            str(exc))
         raise ClientException(message)