Christian Heimes <li...@cheimes.de> added the comment:

UnboundLocalError is a subclass of NameError. You are getting a more specific 
error here.

>>> UnboundLocalError.__mro__
(<class 'UnboundLocalError'>, <class 'NameError'>, <class 'Exception'>, <class 
'BaseException'>, <class 'object'>)

----------
nosy: +christian.heimes

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40728>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to