Skip to content

Commit da6b757

Browse files
Merge pull request #15 from secondlife/brad/fix-empty-body
Fix for failure when pr body is None
2 parents 07ab62f + 4d5ed6b commit da6b757

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

which-branch/which_branch.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ def main(*raw_args):
9898

9999
# pr.body is the PR's description. Look for a line embedded in that
100100
# description containing only 'relnotes:'.
101+
if pr.body is None:
102+
return
101103
lines = iter(pr.body.splitlines())
102104
try:
103105
next(line for line in lines if line.strip() == 'relnotes:')

0 commit comments

Comments
 (0)