Commit dcf8934b authored by Robin Sonnabend's avatar Robin Sonnabend

Do not crash on name-less TOPs

/fix #201
parent 1db55b95
......@@ -1824,7 +1824,7 @@ def make_calendar_from_protocols(protocols, summary):
event["dtend"] = to_datetime(start + timedelta(hours=3))
event["summary"] = protocol.protocoltype.short_name
event["description"] = "\n".join(
top.name for top in protocol.get_tops())
top.name for top in protocol.get_tops() if top.name is not None
calendar.add_component(event)
content = calendar.to_ical().decode("utf-8")
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