# HG changeset patch # User Matti Hamalainen # Date 1598432385 -10800 # Node ID 3a3958edc81363c86d889faee66e6379e17f90bd # Parent 16404eaf35dfbcac844914643deed1a792091c1b Check that the "summary" attribute exists. diff -r 16404eaf35df -r 3a3958edc813 multimerge.py --- a/multimerge.py Thu Jan 30 13:40:40 2020 +0200 +++ b/multimerge.py Wed Aug 26 11:59:45 2020 +0300 @@ -604,7 +604,10 @@ if event["status"] != u"cancelled": if c_found != None: event["colorId"] = c_found - event["summary"] = u"[{1}] {0}".format(event["summary"], calendar["gcm_id"]) + if "summary" in event: + event["summary"] = u"[{1}] {0}".format(event["summary"], calendar["gcm_id"]) + else: + event["summary"] = u"[?] {0}".format(calendar["gcm_id"]) # Add to list of source events src_events.extend(events)