Skip to content

Commit

Permalink
Update app/commands/incident.py
Browse files Browse the repository at this point in the history
Co-authored-by: Pat Heard <[email protected]>
  • Loading branch information
sylviamclaughlin and patheard authored Jan 29, 2024
1 parent ce9b797 commit 2ac82f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/commands/incident.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']}"
Expand Down

0 comments on commit 2ac82f0

Please sign in to comment.