[Python-modules-commits] [python-digitalocean] 02/19: fixes small error in typo

Andrew Starr-Bochicchio asb at moszumanska.debian.org
Tue Jun 20 00:31:27 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 aa60e6aa5eef2cdfcbb9a85b39e1131d4a7346fe
Author: Lorenzo Setale <lorenzo at setale.me>
Date:   Sun Aug 28 15:02:54 2016 +0200

    fixes small error in typo
---
 digitalocean/Manager.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/digitalocean/Manager.py b/digitalocean/Manager.py
index 1598b23..a89e13b 100644
--- a/digitalocean/Manager.py
+++ b/digitalocean/Manager.py
@@ -41,7 +41,7 @@ class Manager(BaseAPI):
         # page, try to deal with pagination. Note: Breaking the logic on
         # multiple pages,
         if 'meta' in data:
-            if 'total' in data['meta']['total'] > params['per_page']:
+            if 'total' in data and 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