-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat: Allow skipping bad events instead of raising InvalidCalendar #137
Conversation
Short: If you find that this is a use case and so, I understand it, I would rather merge it than discuss too much. Please continue contributing and this library will get better. Long: A note on how the assertions come to be here that we replaced with the errors in #134. This is a sentence in my head remembering the decision, I think, the knowledge originates from the an OOPSLA conference I attended.
In that sense: I made the assumption that DTSTART is before DTEND when I programmed the library because I do not want to program in assumptions for which I do not have data. As such, the assert that was converted to an exception in #134 is slightly misrepresenting what the assertion was meant to be:
As such, I do not agree to the semantic change that the exception has created. I would say:
If I want to improve it, I can do that. Anyone can. Best if it is shipped and people can add on. Now the viewpoints that should not lead to a prolonging of a merge:
Thanks! |
Also, please feel free to follow https://github.com/niccokunzmann/python-recurring-ical-events?tab=readme-ov-file#new-releases |
Thanks taking time to respond ! I understand you don't want to pass more time on this but I need to clarify things. I feel confident enough to suggest modifications, but I'm clearly not skilled to take decisions on what is good for this library. I'm glad you open write access to me but I don't feel comfortable/legitimate making changes without your approval. I thinks it's up to you (the maintainers) to drive the pull requests so they fits to your long-time view. For the technical point: For my particular use case, It's occurred twice on the "only" 30 calendars (all on Sogo) I'm using this lib on, and it make it to crash because of an I've exposed my arguments on the #132 issue (the lib should not output modified data as it is true data). But I understand I'm the only one who experience this and it is not a big deal so I'm totally ok for swapping start/end. Concerning Thanks ! |
Okay! Cool! Thanks for your reply! |
Add a
skip_bad_events
option allowing to silently skip event if an InvalidCalendar error is raise during process.This partially addresses #132 by skipping the event with bad date order.
May-be we should wait the work on #133 PR which may handle better options management.