libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [09/20] libcloud git commit: fix the wrap exception method
Date Fri, 05 May 2017 11:46:28 GMT
fix the wrap exception method


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/4e32cc1f
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/4e32cc1f
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/4e32cc1f

Branch: refs/heads/trunk
Commit: 4e32cc1ff3c53996b4f9364d5d3784a081806fef
Parents: c39488e
Author: Anthony Shaw <anthonyshaw@apache.org>
Authored: Fri May 5 19:36:21 2017 +1000
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Fri May 5 19:36:21 2017 +1000

----------------------------------------------------------------------
 libcloud/utils/decorators.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/4e32cc1f/libcloud/utils/decorators.py
----------------------------------------------------------------------
diff --git a/libcloud/utils/decorators.py b/libcloud/utils/decorators.py
index 3c39511..987ed0d 100644
--- a/libcloud/utils/decorators.py
+++ b/libcloud/utils/decorators.py
@@ -51,7 +51,7 @@ def wrap_non_libcloud_exceptions(func):
             if fault and getattr(fault, 'string', None):
                 message = fault.string
             else:
-                message = e.message
+                message = str(e)
 
             raise LibcloudError(value=message, driver=driver)
     return decorated_function


Mime
View raw message