-
Notifications
You must be signed in to change notification settings - Fork 283
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
Clean up the pending task #697
Clean up the pending task #697
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that looks good. It would be great to add a test.
jupyter_client/utils.py
Outdated
except KeyboardInterrupt: | ||
future.cancel() | ||
raise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we want to handle any kind of exception?
except KeyboardInterrupt: | |
future.cancel() | |
raise | |
except BaseException as e: | |
future.cancel() | |
raise e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with your suggestion.
Great, do you feel like adding a test? |
Yes, I would like to add a test. |
Please review the test I pushed. |
Thanks @shingo78, that looks great. |
Fix #696