Skip to content

Commit bf547ac

Browse files
committed
Improve fix for sigmavirus24#128
1 parent be455d7 commit bf547ac

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

github3/structs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ def __repr__(self):
4141
def __iter__(self):
4242
url, params, cls = self.url, self.params, self.cls
4343
headers = self.headers
44-
if params.get('per_page') is None:
44+
45+
if params and 'per_page' not in params:
4546
params['per_page'] = 100
47+
4648
while (self.count == -1 or self.count > 0) and url:
4749
response = self._get(url, params=params, headers=headers)
4850
self.last_response = response

0 commit comments

Comments
 (0)