Commit dcf8934b authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Do not crash on name-less TOPs

/fix #201
parent 1db55b95
...@@ -1824,7 +1824,7 @@ def make_calendar_from_protocols(protocols, summary): ...@@ -1824,7 +1824,7 @@ def make_calendar_from_protocols(protocols, summary):
event["dtend"] = to_datetime(start + timedelta(hours=3)) event["dtend"] = to_datetime(start + timedelta(hours=3))
event["summary"] = protocol.protocoltype.short_name event["summary"] = protocol.protocoltype.short_name
event["description"] = "\n".join( event["description"] = "\n".join( for top in protocol.get_tops()) for top in protocol.get_tops() if is not None
calendar.add_component(event) calendar.add_component(event)
content = calendar.to_ical().decode("utf-8") content = calendar.to_ical().decode("utf-8")
for key in config.CALENDAR_TIMEZONE_MAP: for key in config.CALENDAR_TIMEZONE_MAP:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment