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 2015/07/19 12:17:43 UTC
[1/2] libcloud git commit: Specify default value for pop,
no need to catch ValueError since passing in a non int/float would be
a programmer error which means we should indeed throw.
Repository: libcloud
Updated Branches:
refs/heads/trunk c61db674e -> 79680b56e
Specify default value for pop, no need to catch ValueError since passing in a
non int/float would be a programmer error which means we should indeed throw.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/b326b8ba
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/b326b8ba
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/b326b8ba
Branch: refs/heads/trunk
Commit: b326b8ba2692a9181a10a42fb79db6bb8c6ed011
Parents: c61db67
Author: Tomaz Muraus <to...@tomaz.me>
Authored: Sun Jul 19 18:09:04 2015 +0800
Committer: Tomaz Muraus <to...@tomaz.me>
Committed: Sun Jul 19 18:09:04 2015 +0800
----------------------------------------------------------------------
libcloud/common/exceptions.py | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/b326b8ba/libcloud/common/exceptions.py
----------------------------------------------------------------------
diff --git a/libcloud/common/exceptions.py b/libcloud/common/exceptions.py
index 518d5c1..82fde36 100644
--- a/libcloud/common/exceptions.py
+++ b/libcloud/common/exceptions.py
@@ -47,10 +47,7 @@ class RateLimitReachedError(BaseHTTPError):
message = "{code} Rate limit exceeded".format(code=code)
def __init__(self, *args, **kwargs):
- try:
- self.retry_after = int(kwargs.pop('retry_after'))
- except (KeyError, ValueError):
- self.retry_after = 0
+ self.retry_after = int(kwargs.pop('retry_after', 0))
_error_classes = [RateLimitReachedError]
[2/2] libcloud git commit: Fix Python 2.5 compatibility issue.
Posted by to...@apache.org.
Fix Python 2.5 compatibility issue.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/79680b56
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/79680b56
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/79680b56
Branch: refs/heads/trunk
Commit: 79680b56ebf9f0db9910c1dadf6a831cd43a3e23
Parents: b326b8b
Author: Tomaz Muraus <to...@tomaz.me>
Authored: Sun Jul 19 18:10:08 2015 +0800
Committer: Tomaz Muraus <to...@tomaz.me>
Committed: Sun Jul 19 18:10:08 2015 +0800
----------------------------------------------------------------------
libcloud/common/exceptions.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/79680b56/libcloud/common/exceptions.py
----------------------------------------------------------------------
diff --git a/libcloud/common/exceptions.py b/libcloud/common/exceptions.py
index 82fde36..5f9a949 100644
--- a/libcloud/common/exceptions.py
+++ b/libcloud/common/exceptions.py
@@ -44,7 +44,7 @@ class RateLimitReachedError(BaseHTTPError):
HTTP 429 - Rate limit: you've sent too many requests for this time period.
"""
code = 429
- message = "{code} Rate limit exceeded".format(code=code)
+ message = '%s Rate limit exceeded' % (code)
def __init__(self, *args, **kwargs):
self.retry_after = int(kwargs.pop('retry_after', 0))