commit | ec1b97356abe5d9adf6fc0265c49a48e9899fb26 | [log] [tgz] |
---|---|---|
author | koder aka kdanilov <kdanilov@mirantis.com> | Thu Apr 23 20:43:29 2015 +0300 |
committer | koder aka kdanilov <kdanilov@mirantis.com> | Thu Apr 23 20:43:29 2015 +0300 |
tree | 7345aed6785a98e1418f97e3d80d8d6d738643ec | |
parent | 783b45471accaf9cc68c15b27775df40199b0363 [diff] [blame] |
improve paramiko integration, replace .mesage for exceptions with str(exc)
diff --git a/wally/utils.py b/wally/utils.py index 71fbe57..e3fda71 100644 --- a/wally/utils.py +++ b/wally/utils.py
@@ -62,8 +62,8 @@ yield except Exception as exc: if isinstance(exc, types) and not isinstance(exc, StopIteration): - templ = "Error during {0} stage: {1}" - logger.debug(templ.format(action, exc.message)) + templ = "Error during {0} stage: {1!s}" + logger.debug(templ.format(action, exc)) raise