From 4107d39934b8f0eff810877807022a0d18b7dbcd Mon Sep 17 00:00:00 2001 From: Christian Geier Date: Mon, 22 Dec 2014 16:00:15 +0100 Subject: [PATCH] be leniant on unknown/invalid timezone component names --- src/icalendar/cal.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/icalendar/cal.py b/src/icalendar/cal.py index c00e0f2..0cdb35c 100644 --- a/src/icalendar/cal.py +++ b/src/icalendar/cal.py @@ -543,8 +543,6 @@ class Timezone(Component): dst[tzname] = 0 elif component.name == 'DAYLIGHT': dst[tzname] = 1 - else: - raise ValueError('unknown component name') transitions.sort() transition_times = [transtime - osfrom for transtime, osfrom, _, _ in transitions]