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 <[email protected]> Authored: Sun Jul 19 18:10:08 2015 +0800 Committer: Tomaz Muraus <[email protected]> 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))
