Skip to content

Commit a3f5a65

Browse files
authored
Merge pull request #5 from mylokin/master
fix getter for pagination #SEN-85
2 parents a98fa0c + 7031169 commit a3f5a65

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

instagram/bind.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def _build_path(self):
109109

110110
def _build_pagination_info(self, content_obj):
111111
"""Extract pagination information in the desired format."""
112-
pagination = content_obj.get('pagination', {})
112+
pagination = content_obj.get('pagination') or {}
113113
# prepare it for signed requests turned on
114114
if pagination.get('next_url'):
115115
parsed_url = urlparse.urlparse(pagination.get('next_url'))
@@ -126,7 +126,7 @@ def _build_pagination_info(self, content_obj):
126126
if self.pagination_format == 'dict':
127127
return pagination
128128
raise Exception('Invalid value for pagination_format: %s' % self.pagination_format)
129-
129+
130130
def _do_api_request(self, url, method="GET", body=None, headers=None):
131131
headers = headers or {}
132132
if self.signature and self.api.client_ips != None and self.api.client_secret != None:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from setuptools import setup, find_packages
33

44
setup(name="python-instagram",
5-
version="1.3.2.4",
5+
version="1.3.2.5",
66
description="Instagram API client",
77
license="MIT",
88
install_requires=["simplejson", "httplib2==0.9.2","six"],

0 commit comments

Comments
 (0)