[Python-modules-commits] [python-digitalocean] 12/19: implements the changes suggested in #146
Andrew Starr-Bochicchio
asb at moszumanska.debian.org
Tue Jun 20 00:31:29 UTC 2017
This is an automated email from the git hooks/post-receive script.
asb pushed a commit to annotated tag 1.10.1
in repository python-digitalocean.
commit 6d774c1d196e2a3f970f76aedc27674fad1b4810
Author: Lorenzo Setale <lorenzo at setale.me>
Date: Tue Oct 11 19:57:12 2016 +0200
implements the changes suggested in #146
Signed-off-by: Lorenzo Setale <lorenzo at setale.me>
---
digitalocean/Manager.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/digitalocean/Manager.py b/digitalocean/Manager.py
index a89e13b..0d77946 100644
--- a/digitalocean/Manager.py
+++ b/digitalocean/Manager.py
@@ -40,8 +40,8 @@ class Manager(BaseAPI):
# if there are more elements available (total) than the elements per
# page, try to deal with pagination. Note: Breaking the logic on
# multiple pages,
- if 'meta' in data:
- if 'total' in data and data['meta']['total'] > params['per_page']:
+ if 'meta' in data and 'total' in data['meta']:
+ if data['meta']['total'] > params['per_page']:
return self.__deal_with_pagination(args[0], data, params)
else:
return data
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-digitalocean.git
More information about the Python-modules-commits
mailing list