Skip to content

Commit a5c53fa

Browse files
committed
MyPy thinks 'Link' is optional
MyPy thinks 'Link' is optional, although we know that if there was a 'next' link there will be a 'prev' link.
1 parent 4cf6671 commit a5c53fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/labels/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def list_labels(self, repo: Repository) -> typing.List[Label]:
8181
headers={"Accept": "application/vnd.github.symmetra-preview+json"},
8282
)
8383
json.extend(response.json())
84-
link_header = response.headers.get('Link')
84+
link_header = response.headers.get('Link', '')
8585
next_page = [l for l in link_header.split(',') if 'rel="next"' in l]
8686

8787
if response.status_code != 200:

0 commit comments

Comments
 (0)