Skip to content

Commit

Permalink
fix error in superdesk core tests
Browse files Browse the repository at this point in the history
event was unbound
  • Loading branch information
petrjasek committed Apr 26, 2024
1 parent 386ce89 commit d305258
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/planning/assignments/assignments.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ def send_assignment_notification(self, updates, original=None, force=False):
# This situation won't be applicable in the production but only for the test cases.
if not assignment["planning"].get("scheduled"):
logger.error("Assignment has no scheduled date, cannot create an ICS file")
event = {}
else:
# Create the ICS object to be added to the email usable in google calendar.
ical = Calendar()
Expand Down

0 comments on commit d305258

Please sign in to comment.