You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2014/01/03 15:59:46 UTC
[34/44] git commit: flake8 fixes
flake8 fixes
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/e138a1b5
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/e138a1b5
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/e138a1b5
Branch: refs/heads/trunk
Commit: e138a1b5c48a4755b1a811fe72489988b653051a
Parents: 64ad1cd
Author: Rick Wright <ri...@google.com>
Authored: Fri Dec 20 15:52:00 2013 -0800
Committer: Rick Wright <ri...@google.com>
Committed: Thu Jan 2 23:30:03 2014 -0800
----------------------------------------------------------------------
libcloud/common/google.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/e138a1b5/libcloud/common/google.py
----------------------------------------------------------------------
diff --git a/libcloud/common/google.py b/libcloud/common/google.py
index 01c3cb0..2206c25 100644
--- a/libcloud/common/google.py
+++ b/libcloud/common/google.py
@@ -167,7 +167,7 @@ class GoogleResponse(JsonResponse):
err = body['error']['errors'][0]
else:
err = body['error']
-
+
if 'code' in err:
code = err.get('code')
message = err.get('message')
@@ -227,8 +227,8 @@ class GoogleResponse(JsonResponse):
else:
message = body
code = None
- raise InvalidRequestError(message, self.status, code)
-
+ raise InvalidRequestError(message, self.status, code)
+
else:
if (not json_error) and ('error' in body):
(code, message) = self._get_error(body)