Skip to content

Commit

Permalink
Fix bug with empty body
Browse files Browse the repository at this point in the history
  • Loading branch information
vsoch authored Aug 27, 2021
1 parent b7188c6 commit cfcdc16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate-events.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def generate_content(event, user, seen):
issue_number = issue_url.split("/")[-1]
issue_state = event["payload"]["issue"]["state"]
issue_title = event["payload"]["issue"]["title"]
issue_body = event["payload"]["issue"]["body"].split("\n")[0] + "..."
issue_body = event["payload"]["issue"].get('body', '').split("\n")[0] + "..."
description = "<a href='https://github.com/%s' target='_blank'>%s</a> %s issue <a href='%s' target='_blank'>%s#%s</a>.\n\n<p>%s</p><small>%s</small><a href='%s' target='_blank'>View Comment</a>" % (
user,
user,
Expand Down

0 comments on commit cfcdc16

Please sign in to comment.