ical: Ensure there is a DTEND element
continuous-integration/drone/push Build is failing Details

This commit is contained in:
nemunaire 2023-12-09 17:12:56 +01:00
parent c9b94560ed
commit c1d3f34138
1 changed files with 1 additions and 1 deletions

View File

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