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

IndexError fixes + bool(Component) to return True #179

Merged
merged 2 commits into from Feb 5, 2016

Conversation

stlaz
Copy link
Collaborator

@stlaz stlaz commented Jan 21, 2016

Hi,

Found an IndexError in Component.from_ical() at https://github.com/collective/icalendar/blob/master/src/icalendar/cal.py#L350 so I replaced it with ValueError instead.

Also added bool() in Component so the instances of the class return True on bool() check (#141). Without it, the check at https://github.com/collective/icalendar/blob/master/src/icalendar/cal.py#L317 might always fail and raise Exception even for Components with ignore_exceptions == True.

@thet thet merged commit 63fcf74 into collective:master Feb 5, 2016
@thet
Copy link
Member

thet commented Feb 5, 2016

Tnx for sorry for the delay!

@stlaz
Copy link
Collaborator Author

stlaz commented Feb 5, 2016

Thank you for your time :)

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.

None yet

2 participants