mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 11:51:10 +00:00
Fix totalCount for empty response, closes #905
This commit is contained in:
@@ -155,7 +155,7 @@ class PaginatedList(PaginatedListBase):
|
||||
headers=self.__headers
|
||||
)
|
||||
if 'link' not in headers:
|
||||
self.__totalCount = len(data)
|
||||
self.__totalCount = len(data) if data else 0
|
||||
else:
|
||||
links = self.__parseLinkHeader(headers)
|
||||
lastUrl = links.get("last")
|
||||
|
||||
Reference in New Issue
Block a user