Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Commit ca9aae2

Browse files
Fixes failure in case no command is provided
1 parent 7d54c0a commit ca9aae2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

highfive/newpr.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,12 @@ def set_assignee(self, assignee, owner, repo, issue, user, author, to_mention):
130130
for mention in to_mention:
131131
if len(message) > 0:
132132
message += '\n\n'
133-
message += "%s\n\ncc %s" % (mention['message'],
133+
msg = mention.get('message')
134+
if msg is not None:
135+
msg += '\n\n'
136+
else:
137+
msg = ''
138+
message += "%s\n\ncc %s" % (msg,
134139
','.join([x for x in mention['reviewers'] if x != user]))
135140
cmd = mention.get('command')
136141
if cmd is not None:

0 commit comments

Comments
 (0)