Skip to content

Prevent infinite loop when catching errors. #1

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

Merged
merged 1 commit into from
Apr 4, 2014

Conversation

hughsk
Copy link
Member

@hughsk hughsk commented Apr 4, 2014

If an error is caught, the parser's while loop would continue to run without advancing, as the return value of take would always be true.

By always returning false, parsing will stop when an error is raised, caught or otherwise.

Thanks! :)

If an error is caught, the parser's while loop would continue
to run without advancing, as the return value of `take` would
always be true.

By always returning false, parsing will stop when an error
is raised, caught or otherwise.
@hughsk
Copy link
Member Author

hughsk commented Apr 4, 2014

Since you're not watching the repo, /cc @chrisdickinson :)

@chrisdickinson
Copy link
Member

Awesome, thanks for pinging me!

chrisdickinson added a commit that referenced this pull request Apr 4, 2014
Prevent infinite loop when catching errors.
@chrisdickinson chrisdickinson merged commit 045475f into stackgl:master Apr 4, 2014
@hughsk
Copy link
Member Author

hughsk commented Apr 4, 2014

No worries, thanks for the speedy merge!

@chrisdickinson
Copy link
Member

published as 0.0.6.

@chrisdickinson
Copy link
Member

(and also thanks again!)

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.

2 participants