Skip blank desc. to prevent encode error

This commit is contained in:
Ted Steinmann 2020-03-25 22:34:56 -05:00
parent 4be10695fa
commit 02a6bf871a
1 changed files with 1 additions and 0 deletions

View File

@ -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'):