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
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class IcalModule:
|
|||
with open(cache_file) as c:
|
||||
ecal = Calendar.from_ical(c.read())
|
||||
for component in ecal.walk():
|
||||
if component.name == "VEVENT":
|
||||
if component.name == "VEVENT" and "DTEND" in component:
|
||||
start = component.decoded("DTSTART")
|
||||
end = component.decoded("DTEND")
|
||||
if "RRULE" in component:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue