8000 Fix KeyError with GHE older version · greggilbert/github3.py@1be3fda · GitHub
[go: up one dir, main page]

Skip to content

Commit 1be3fda

Browse files
committed
Fix KeyError with GHE older version
1 parent fddbd7c commit 1be3fda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/github3/pulls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ class PullRequest(_PullRequest):
712712
def _update_attributes(self, pull):
713713
super()._update_attributes(pull)
714714
self.additions_count = pull["additions"]
715-
self.auto_merge = pull["auto_merge"]
715+
self.auto_merge = pull.get("auto_merge", None)
716716
self.author_association = pull["author_association"]
717717
self.comments_count = pull["comments"]
718718
self.commits_count = pull["commits"]

0 commit comments

Comments
 (0)
0