Skip to content

Commit 3ba6eb1

Browse files
committed
Issues without a body return None rather than empty string
1 parent e3af237 commit 3ba6eb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/github-dependencies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def get_issue(self, number: int) -> Optional[github.Issue.Issue]:
6363

6464
def get_dependencies(self, number: int) -> List[int]:
6565
issue = self.get_issue(number)
66-
if not issue:
66+
if not issue or not issue.body:
6767
return []
6868

6969
lines = dropuntil(issue.body.splitlines(), key='### Dependencies')

0 commit comments

Comments
 (0)