-
-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alarm Trigger field from Apple OSX iCal breaks with Value Error #69
Comments
Partial solution is to do before starting the parse. |
If I can patch this will you take the pull request? Had same issue, pretty problematic, but the ignore_exceptions hack does work. |
sure, pull requests are very welcome. please take a look at the CONTRIBUTING file https://github.com/collective/icalendar/blob/master/CONTRIBUTING.rst |
I also can't reproduce this error (Note: You can try it out:
Prints out the following without any errors:
|
The TRIGGER parses nicely now. Thanks for checking! |
When
BEGIN:VALARM
X-WR-ALARMUID:5809BC21-BA9F-4CC8-A0D2-46AD04002214
TRIGGER:P1501W3DT7H28M16S
ATTACH;VALUE=URI:
ACTION:AUDIO
END:VALARM
is parsed with Calendar.from_string(...) it generates
raise ValueError('Invalid iCalendar duration: %s' % ical)
ValueError: Invalid iCalendar duration: P1501W3DT7H28M16S
4.3.6 Duration
Value Name: DURATION
Purpose: This value type is used to identify properties that contain
a duration of time.
Formal Definition: The value type is defined by the following
notation:
Description: If the property permits, multiple "duration" values are
specified by a COMMA character (US-ASCII decimal 44) separated list
of values. The format is expressed as the [ISO 8601] basic format for
the duration of time. The format can represent durations in terms of
weeks, days, hours, minutes, and seconds.
IIUC the Applie iCal format is not to the spec since it splits up a
P1501W3D
&
T7H28M16S
T7H28M16S looks Ok
P1501W3D looks wrong.
1 Week 3 Days but what is the 150 ?
Is there any way to ignore the component if parsing the duration fails ?
The text was updated successfully, but these errors were encountered: