From 263ce33e1989f88ec40f3207c6d2cc34d6507e62 Mon Sep 17 00:00:00 2001 From: Tobias Brox Date: Sun, 29 Jan 2023 00:15:41 +0100 Subject: [PATCH] obj.icalendar_component - the default assertion that obj is not a recurrence set (which actually only logs an error in 'production-mode') is certainly going to produce a lot of noise. Switching to no assert by default --- caldav/objects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/caldav/objects.py b/caldav/objects.py index 9236de73..e56686e4 100644 --- a/caldav/objects.py +++ b/caldav/objects.py @@ -1806,7 +1806,7 @@ def set_relation( self.save() - def _get_icalendar_component(self, assert_one=True): + def _get_icalendar_component(self, assert_one=False): """Returns the icalendar subcomponent - which should be an Event, Journal, Todo or FreeBusy from the icalendar class @@ -1844,7 +1844,7 @@ def _set_icalendar_component(self, value): icalendar_component = property( _get_icalendar_component, _set_icalendar_component, - doc="icalendar component - cannot be used with recurrence sets", + doc="icalendar component - should not be used with recurrence sets", ) def add_attendee(self, attendee, no_default_parameters=False, **parameters):