diff --git a/tasks.py b/tasks.py index 28a97703a14de4c61278a4d4dddc595dde1d72bf..3586e6a41c267453e88421fa0fd4cce74481f81d 100644 --- a/tasks.py +++ b/tasks.py @@ -778,7 +778,7 @@ def push_tops_to_calendar_async(protocol_id): client.set_event_at(begin=protocol.get_datetime(), name=protocol.protocoltype.short_name, description=description) except CalendarException as exc: - error = Protocol.create_error("Calendar", + error = protocol.create_error("Calendar", "Pushing TOPs to Calendar failed", str(exc)) db.session.add(error) db.session.commit()