Skip to content

Commit c495411

Browse files
committed
Fix warning from ics library
ics complained with: FutureWarning: Behaviour of str(Component) will change in version 0.9 to only return a short description, NOT the ics representation. Use the explicit Component.serialize() to get the ics representation.
1 parent beee21d commit c495411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyvocz/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def make_ics(events_in, url, *, recurrence_series=()):
406406
)
407407
events.append(cal_event)
408408

409-
return ics.Calendar(events=events)
409+
return ics.Calendar(events=events).serialize()
410410

411411

412412
def make_feed(events, url):

0 commit comments

Comments
 (0)