You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note solving this, especially with python2 support, may depend on solving at least parts of #236 first, which puts it in the moderately hard bucket.
While shadowing is problematic, it is relatively common on python 2 to start with e = None followed by multiple try blocks to re-use the same exception name e and then some reporting to occur at the end if any of them assigned a value to e.
Solving it only for python 3 is quite a bit easier.
For
In both Python 2 and 3, exception variable
e
shadows the local variablee
, and is not being reported.In python3,
e
is unbound after the exception block, and aUnboundLocalError
occurs when the local variablee
is referenced because it was disappeared.The text was updated successfully, but these errors were encountered: