From cfcdc165d69e6b080ee78955fb02778173915574 Mon Sep 17 00:00:00 2001 From: Vanessasaurus <814322+vsoch@users.noreply.github.com> Date: Thu, 26 Aug 2021 20:50:28 -0600 Subject: [PATCH] Fix bug with empty body --- scripts/generate-events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate-events.py b/scripts/generate-events.py index 0890ff7..7930b97 100755 --- a/scripts/generate-events.py +++ b/scripts/generate-events.py @@ -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 = "%s %s issue %s#%s.\n\n

%s

%sView Comment" % ( user, user,