Skip to content

exc not defined in this function, raise the correct error... #278

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
May 6, 2017

Conversation

jmgurney
Copy link
Contributor

@jmgurney jmgurney commented Apr 9, 2017

The exc var is not a local variable. It clearly was suppose to be this.

Add a test to cover this case. Verified that the new test failed before the fix, and passes after the fix. Also, coverage shows that the line was not covered previously, and is now covered.

@ultimanet
Copy link

@jmgurney Thanks for the fix!
Let's hope this will be merged soon!

@edschofield edschofield merged commit f30efeb into PythonCharmers:master May 6, 2017
@edschofield
Copy link
Contributor

Thanks for the patch, @jmgurney!

@wuyeguo
Copy link

wuyeguo commented Aug 3, 2017

the code maybe the following is more reasonable:
future_error.txt

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.

4 participants