Skip to content

Commit

Permalink
Merge pull request #98 from sopel-irc/empty-body-NoneType
Browse files Browse the repository at this point in the history
github: issue/PR body can be `None`
  • Loading branch information
dgw committed Aug 21, 2021
2 parents ba428b0 + 0df5030 commit a5e89b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sopel_modules/github/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def issue_info(bot, trigger, match=None):
bot.say('[GitHub] API says this is an invalid issue. Please report this if you know it should work!')
return NOLIMIT

if body.strip() == '':
if body is None or body.strip() == '':
body = 'No description provided.'
else:
body = formatting.fmt_short_comment_body(body)
Expand Down

0 comments on commit a5e89b9

Please sign in to comment.