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

bpo-30508: Don't log exceptions if Task/Future "cancel()" method called #2050

Merged
merged 5 commits into from
Jun 11, 2017

Conversation

1st1
Copy link
Member

@1st1 1st1 commented Jun 9, 2017

Python bug: http://bugs.python.org/issue30508

The problem is that if a Future or a Task has an exception wrapped into it, even if we explicitly call .cancel() method, we print a traceback. We shouldn't do so, because calling cancel() is explicitly saying that I don't care about this Future/Task, I'm cancelling it to forget about it and its result.

@1st1 1st1 self-assigned this Jun 9, 2017
@1st1 1st1 requested review from vstinner and methane June 9, 2017 23:07
@1st1 1st1 requested review from ncoghlan and warsaw and removed request for ncoghlan June 9, 2017 23:11
@fafhrd91
Copy link
Contributor

fafhrd91 commented Jun 9, 2017

lgtm

Copy link
Member

@methane methane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants