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
I get an error message when I try to convert an ics calendar, whose (many) vevents are without category.
The message is
File "/usr/local/lib/python3.8/dist-packages/ics/component.py", line 54, in _populate
raise ValueError(
ValueError: A VEVENT must have at most one CATEGORIES
I use a Python 3 script to convert ics to md:
from ics import Calendar
md_template = """
### {start}
*{name}*: {desc}"""
with open("diario.ics") as f:
cal = Calendar(f.read())
print("## Diario")
for e in sorted(cal.events):
print(md_template.format(start=e.begin.strftime("%Y-%m-%e"), name=e.name,
desc=e.description))
There is a workaround to avoid this behavior, without add manually a category to every vevent (quite boring)?
The text was updated successfully, but these errors were encountered:
I get an error message when I try to convert an ics calendar, whose (many) vevents are without category.
The message is
I use a Python 3 script to convert ics to md:
There is a workaround to avoid this behavior, without add manually a category to every vevent (quite boring)?
The text was updated successfully, but these errors were encountered: