be leniant on unknown/invalid timezone component names

pull/159/head
Christian Geier 2014-12-22 16:00:15 +01:00 zatwierdzone przez Johannes Raggam
rodzic e83f77840b
commit 4107d39934
1 zmienionych plików z 0 dodań i 2 usunięć

Wyświetl plik

@ -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]