Skip to content

Commit

Permalink
alaways pass string representation of calendar object to dquote
Browse files Browse the repository at this point in the history
  • Loading branch information
jacadzaca committed Dec 15, 2022
1 parent 0e0fdc5 commit b47aba5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/icalendar/parser.py
Expand Up @@ -102,7 +102,10 @@ def param_value(value):
"""
if isinstance(value, SEQUENCE_TYPES):
return q_join(value)
return dquote(value)
elif isinstance(value, str):
return dquote(value)
else:
return dquote(value.to_ical().decode(DEFAULT_ENCODING))


# Could be improved
Expand Down

0 comments on commit b47aba5

Please sign in to comment.