Skip to content

Commit

Permalink
obj.icalendar_component - the default assertion that obj is not a rec…
Browse files Browse the repository at this point in the history
…urrence 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
  • Loading branch information
tobixen committed Feb 15, 2023
1 parent 5ce989a commit 640a314
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions caldav/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 640a314

Please sign in to comment.