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

Add CLI flag to exit on exception #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jncraton
Copy link

@jncraton jncraton commented Feb 13, 2018

This adds a flag to exit on exception (#100). I've only tested this with Python 3 in the Jupyter engine. I wasn't able to find a clean way to handle exceptions in general from Jupyter, so I fell back to checking sys.last_value (the last unhandled exception object). This seems to work fine in the light testing that I've done.

I'm definitely open to better ways to do this or any other feedback.

@jncraton jncraton changed the title Add CLI flag to exit on exception #100 Add CLI flag to exit on exception Feb 13, 2018
@coveralls
Copy link

coveralls commented Feb 13, 2018

Coverage Status

Coverage decreased (-0.2%) to 76.735% when pulling 476030a on jncraton:exitexception into eddee3b on mpastell:master.

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