Skip to content
Snippets Groups Projects
Commit 1c5e1a1b authored by Ian Cordasco's avatar Ian Cordasco
Browse files

Skip objects iterated over that are None

Fixes #304
Fixes #305
parent e2a129ad
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -79,6 +79,8 @@ class GitHubIterator(GitHubCore, Iterator):
json = json.items()
 
for i in json:
if i is None: # Temporary fix for GitHub Enterprise and #304
continue
yield cls(i, self) if issubclass(cls, GitHubCore) else cls(i)
self.count -= 1 if self.count > 0 else 0
if self.count == 0:
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment