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

Periodic utility now stops when StopIteration is raised #1792

Merged
merged 1 commit into from
Aug 8, 2017

Conversation

jlstevens
Copy link
Contributor

@jlstevens jlstevens commented Aug 6, 2017

What is hopefully a simple fix to stop the periodic utility automatically when StopIteration is raised e.g when using a generator in a DynamicMap.

I understand why you might want to skip KeyError in get_plot_frame but I don't get why it is blocking all exceptions and simply printing them. For now I am just catching StopIteration specifically and re-raising those exceptions.

@philippjfr Why can't exceptions other than KeyError be left alone and allowed to bubble up?

@jlstevens
Copy link
Contributor Author

The tests pass but that might not tell us much...

@philippjfr
Copy link
Member

This seems safe to me, I'd also like to investigate removing that catch-all exception handler, but not in this PR.

@philippjfr philippjfr merged commit 5e58a86 into master Aug 8, 2017
ea42gh pushed a commit to ea42gh/holoviews that referenced this pull request Aug 12, 2017
@jlstevens jlstevens added this to the 1.8.3 milestone Aug 21, 2017
@jlstevens jlstevens deleted the periodic_stopiteration branch August 21, 2017 20:57
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