Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions drchrono/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def list(self, params=None, **kwargs):
url = data['next'] # Same as the resource URL, but with the page query parameter present
for result in data['results']:
yield result
if url:
response = requests.get(url, params=params, **kwargs)
else:
exe = ERROR_CODES.get(response.status_code, APIException)
self.logger.debug("list exception {}".format(exe))
Expand Down