Code Repositories xandikos / 44afd2a
Check for None rather than KeyError. Jelmer Vernooij a month ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
348348
349349
350350 def apply_time_range_vevent(start, end, comp, tzify):
351 try:
352 start = tzify(comp['DTSTART'].dt)
353 except KeyError:
351 if comp['DTSTART'] is None:
354352 raise MissingProperty('DTSTART')
353
354 start = tzify(comp['DTSTART'].dt)
355355
356356 if not (end > start):
357357 return False