Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove annoying assert from icalendar_component #274

Merged
merged 1 commit into from
Feb 15, 2023
Merged

Conversation

tobixen
Copy link
Member

@tobixen tobixen commented Feb 14, 2023

By default, the code would break with an ugly assert if doing obj.icalendar_component and the obj contained a recurrance set. I think that in almost all cases it will be harmless to yield the first component in the recurrence set, and I'm pretty sure that assert will blow up things for people, so I change the default to not assert anything.

(maybe we should yield a rate-limited error message instead?)

…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
@tobixen tobixen merged commit 640a314 into master Feb 15, 2023
@tobixen tobixen deleted the annoyance3 branch July 18, 2023 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant