diff --git a/shiftregister/importer/importer.py b/shiftregister/importer/importer.py index f006417..629ff6c 100644 --- a/shiftregister/importer/importer.py +++ b/shiftregister/importer/importer.py @@ -25,11 +25,13 @@ def import_calendar(calendar): events = {} for event in cal.walk("vevent"): uid = event.decoded("uid").decode() - summary = event.decoded("summary").decode() + summary = (event.decoded("summary", None) or b"").decode() description = (event.decoded("description", None) or b"").decode() start = event.decoded("dtstart").astimezone(timezone.utc) end = event.decoded("dtend").astimezone(timezone.utc) location = event.decoded("location", None) + if not summary: + continue if location is not None: location = location.decode()