Skip to content

Commit

Permalink
[SDAAP-64] Fix null location crash in notifications (#1773)
Browse files Browse the repository at this point in the history
  • Loading branch information
marwoodandrew authored and petrjasek committed Mar 17, 2023
1 parent 489fb24 commit 2b5c9eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/planning/assignments/assignments.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def send_assignment_notification(self, updates, original=None, force=False):
event["PRIORITY"] = priority

if event_item:
if len(event_item.get("location", [])) > 0:
if event_item.get("location"):
location = event_item["location"][0]
format_address(location)
formatted_location = (
Expand Down

0 comments on commit 2b5c9eb

Please sign in to comment.