libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vd...@apache.org
Subject [01/18] libcloud git commit: Fix #LIBCLOUD-925
Date Wed, 19 Sep 2018 08:09:37 GMT
Repository: libcloud
Updated Branches:
  refs/heads/trunk 20186b9e8 -> bad71c41e


Fix #LIBCLOUD-925


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

Branch: refs/heads/trunk
Commit: 814bc3e366bdce7f2b935eeb3c7ed21d562cf3e8
Parents: 98c4fe0
Author: micafer <micafer1@upv.es>
Authored: Tue Jun 20 08:21:37 2017 +0200
Committer: micafer <micafer1@upv.es>
Committed: Tue Jun 20 08:21:37 2017 +0200

----------------------------------------------------------------------
 libcloud/common/google.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/814bc3e3/libcloud/common/google.py
----------------------------------------------------------------------
diff --git a/libcloud/common/google.py b/libcloud/common/google.py
index 39d94e4..806e022 100644
--- a/libcloud/common/google.py
+++ b/libcloud/common/google.py
@@ -220,7 +220,9 @@ class GoogleResponse(JsonResponse):
             code = err.get('code')
             message = err.get('message')
         else:
-            code = err.get('reason', None)
+            code = None
+            if 'reason' in err:
+                code = err.get('reason')
             message = body.get('error_description', err)
 
         return (code, message)


Mime
View raw message