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 2016/02/23 09:51:17 UTC
[2/2] libcloud git commit: Fix __repr__ - self.code is a string and
not a number.
Fix __repr__ - self.code is a string and not a number.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/654b7c20
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/654b7c20
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/654b7c20
Branch: refs/heads/trunk
Commit: 654b7c20e83f00fca36b45d715c62ea55e38f05b
Parents: a3ba6a4
Author: Tomaz Muraus <to...@apache.org>
Authored: Tue Feb 23 09:49:19 2016 +0100
Committer: Tomaz Muraus <to...@apache.org>
Committed: Tue Feb 23 09:49:19 2016 +0100
----------------------------------------------------------------------
libcloud/dns/drivers/godaddy.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/654b7c20/libcloud/dns/drivers/godaddy.py
----------------------------------------------------------------------
diff --git a/libcloud/dns/drivers/godaddy.py b/libcloud/dns/drivers/godaddy.py
index 6798983..1a18e3a 100644
--- a/libcloud/dns/drivers/godaddy.py
+++ b/libcloud/dns/drivers/godaddy.py
@@ -41,7 +41,7 @@ class GoDaddyDNSException(LibcloudError):
return self.__repr__()
def __repr__(self):
- return '<GoDaddyDNSException in %d: %s>' % (self.code, self.message)
+ return ('<GoDaddyDNSException in %s: %s>' % (self.code, self.message))
class GoDaddyDNSResponse(JsonResponse):
@@ -59,8 +59,7 @@ class GoDaddyDNSResponse(JsonResponse):
def parse_error(self):
data = self.parse_body()
- raise GoDaddyDNSException(
- data['code'], data['message'])
+ raise GoDaddyDNSException(code=data['code'], message=data['message'])
def success(self):
return self.status in self.valid_response_codes