Skip to content

Commit

Permalink
fix(pulls): handle review["user"] == None
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner authored and sigmavirus24 committed Dec 15, 2023
1 parent 69414a0 commit 35ce354
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/github3/pulls.py
Expand Up @@ -994,7 +994,9 @@ def _update_attributes(self, review):
# PullReview.
self.commit_id = review.get("commit_id", None)
self.html_url = review["html_url"]
self.user = users.ShortUser(review["user"], self)
self.user = review["user"]
if self.user:
self.user = users.ShortUser(self.user, self)
self.state = review["state"]
self.submitted_at = self._strptime(review.get("submitted_at"))
self.pull_request_url = review["pull_request_url"]
Expand Down

0 comments on commit 35ce354

Please sign in to comment.