From 25b6ea2f7d4a8656acf5150dbcad8c6dbfb5cc66 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 10 Jun 2025 18:01:34 +0200 Subject: [PATCH] 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. --- pyvocz/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyvocz/views.py b/pyvocz/views.py index 09e47f9..df04b95 100644 --- a/pyvocz/views.py +++ b/pyvocz/views.py @@ -406,7 +406,7 @@ def make_ics(events_in, url, *, recurrence_series=()): ) events.append(cal_event) - return ics.Calendar(events=events) + return ics.Calendar(events=events).serialize() def make_feed(events, url):