From 2ac82f058efa444d7c5902888397eba6fd64fd70 Mon Sep 17 00:00:00 2001 From: Sylvia McLaughlin <85905333+sylviamclaughlin@users.noreply.github.com> Date: Mon, 29 Jan 2024 09:17:15 -0800 Subject: [PATCH] Update app/commands/incident.py Co-authored-by: Pat Heard --- app/commands/incident.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commands/incident.py b/app/commands/incident.py index 1bdc440d..9900a924 100644 --- a/app/commands/incident.py +++ b/app/commands/incident.py @@ -414,7 +414,7 @@ def handle_reaction_added(client, ack, body, logger): content = get_timeline_section(document_id) # if the message already exists in the timeline, then don't put it there again - if message_date_time not in content: + if content and message_date_time not in content: # append the new message to the content content += ( f"{message_date_time} {user_full_name}: {message['text']}"