From 02a6bf871a1194846e964ef9afee41154b4c797b Mon Sep 17 00:00:00 2001 From: Ted Steinmann Date: Wed, 25 Mar 2020 22:34:56 -0500 Subject: [PATCH] Skip blank desc. to prevent encode error --- ical2csv.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ical2csv.py b/ical2csv.py index 1c54801..7dd4389 100644 --- a/ical2csv.py +++ b/ical2csv.py @@ -36,6 +36,7 @@ def open_cal(): if component.get('SUMMARY') == None: continue #skip blank items event.summary = component.get('SUMMARY') event.uid = component.get('UID') + if component.get('DESCRIPTION') == None: continue #skip blank items event.description = component.get('DESCRIPTION') event.location = component.get('LOCATION') if hasattr(component.get('dtstart'), 'dt'):