Skip to content

Commit

Permalink
Fix icalparser for list categories
Browse files Browse the repository at this point in the history
  • Loading branch information
jindra12 committed Apr 12, 2023
1 parent 32848e4 commit d05697d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion icalevents/icalparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ def create_event(component, utc_default):
event.sequence = component.get("sequence")

if component.get("categories"):
categories = component.get("categories").cats
categoriesval = component.get("categories")
categories = component.get("categories").cats if hasattr(categoriesval, "cats") else categoriesval
encoded_categories = list()
for category in categories:
encoded_categories.append(encode(category))
Expand Down

0 comments on commit d05697d

Please sign in to comment.