Skip to content

Commit

Permalink
handle possible null actions in interactive.py (#3914)
Browse files Browse the repository at this point in the history
* handle possible null actions interactive.py

It is possible that there are tasks, but there is no previous actions value so actions is None. This addresses that issue by setting actions to an empty string if it is None.
  • Loading branch information
jschroth authored and metroid-samus committed Nov 29, 2023
1 parent 2354d22 commit 5d83696
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1531,6 +1531,7 @@ def handle_report_tactical_command(

incident = incident_service.get(db_session=db_session, incident_id=context["subject"].id)
if incident.tasks:
actions = "" if actions is None else actions
actions += "\n\nOutstanding Incident Tasks:\n".join(
[
"-" + task.description
Expand Down

0 comments on commit 5d83696

Please sign in to comment.