If the DTSTART time zone is considered UTC this entry has a zero duration.
In vobject/icalendar.py the class Duration provides a method transformToNative. In case of zero duration it seems to raise an exception ParseError("DURATION must have a single duration string") because it finds less than one durations. The exceptions seems to be provided for cases of more than on (inconsistent) durations.
May I suggest:
improving the error message (e.g. displaying the entry UID and the number of durations actually found)
avoiding the exception in case of zero duration (when len(deltalist) == 0); in this case a duration of 0:00 should be returned.
Thanks again for your great software and best regards
Dear Maintainers,
first of all: thank you very much for your great class package.
I have an ICS entry which contains the following time data:
If the DTSTART time zone is considered UTC this entry has a zero duration.
In
vobject/icalendar.py
the classDuration
provides a methodtransformToNative
. In case of zero duration it seems to raise an exceptionParseError("DURATION must have a single duration string")
because it finds less than one durations. The exceptions seems to be provided for cases of more than on (inconsistent) durations.May I suggest:
len(deltalist) == 0
); in this case a duration of 0:00 should be returned.Thanks again for your great software and best regards
Finke