Skip to content

Commit b3bb35f

Browse files
caugnersigmavirus24
authored andcommitted
fix(issues/event): init ShortUser only if actor is defined
1 parent 17a46e3 commit b3bb35f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/github3/issues/event.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ class IssueEvent(GitHubCore):
6060

6161
def _update_attributes(self, event):
6262
self._api = event["url"]
63-
self.actor = users.ShortUser(event["actor"], self)
63+
if event["actor"]:
64+
self.actor = users.ShortUser(event["actor"], self)
6465
self.commit_id = event["commit_id"]
6566
self.commit_url = event["commit_url"]
6667
self.created_at = self._strptime(event["created_at"])

0 commit comments

Comments
 (0)