You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When decoding categories from an ical feed, an AssertionError is thrown: component.decoded('categories', [])
Stacktrace:
File "\lib\site-packages\icalendar\cal.py", line 237, in decoded
return self._decode(name, value)
File "\lib\site-packages\icalendar\cal.py", line 220, in _decode
decoded = types_factory.from_ical(name, value)
File "\lib\site-packages\icalendar\prop.py", line 1042, in from_ical
decoded = type_class.from_ical(value)
File "\lib\site-packages\icalendar\prop.py", line 282, in from_ical
out = unescape_char(ical).split(",")
File "\lib\site-packages\icalendar\parser.py", line 34, in unescape_char
assert isinstance(text, (compat.unicode_type, compat.bytes_type))
AssertionError
Without seeing your .ics file, I can't say for certain how you're reaching that assertion, but I'm 95% confident it's related to the changes in 20e09f3, which created a designated class for VCATEGORY fields, whereas before they were simple strings. Reverting to icalendar==4.0.2 would likely fix the issue until it gets resolved here.
This bug in a client application seems to stem from the same: pimutils/khal#823
NB: Not a developer of this library, just a new user of Khal debugging my own issues with it.
When decoding categories from an ical feed, an AssertionError is thrown:
component.decoded('categories', [])
Stacktrace:
The type of
ical
in fileprop.py
vCategory.from_ical
(line 281) isicalendar.prop.vCategory
Using
component.get('categories', [])
worksicalender version: 4.0.3
The text was updated successfully, but these errors were encountered: