From dcf8934b79a8d375d32dd88c460d749ceff595d1 Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Mon, 11 Jun 2018 17:17:25 +0200 Subject: [PATCH] Do not crash on name-less TOPs /fix #201 --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index bc22ac5..c58db9f 100755 --- a/server.py +++ b/server.py @@ -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: -- GitLab