ical: Ensure there is a DTEND element
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
c9b94560ed
commit
c1d3f34138
@ -55,7 +55,7 @@ class IcalModule:
|
|||||||
with open(cache_file) as c:
|
with open(cache_file) as c:
|
||||||
ecal = Calendar.from_ical(c.read())
|
ecal = Calendar.from_ical(c.read())
|
||||||
for component in ecal.walk():
|
for component in ecal.walk():
|
||||||
if component.name == "VEVENT":
|
if component.name == "VEVENT" and "DTEND" in component:
|
||||||
start = component.decoded("DTSTART")
|
start = component.decoded("DTSTART")
|
||||||
end = component.decoded("DTEND")
|
end = component.decoded("DTEND")
|
||||||
if "RRULE" in component:
|
if "RRULE" in component:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user