10000 Merge pull request #1060 from dozhang/fix-missing-key · thebrid/github3.py@f637d14 · GitHub
[go: up one dir, main page]

Skip to content

Commit f637d14

Browse files
authored
Merge pull request sigmavirus24#1060 from dozhang/fix-missing-key
Fix KeyError with GHE older version
2 parents c022ce7 + da7bc42 commit f637d14

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