Python Error¶
Overview¶
Python has a range of erorr space
When a name is not found at all, a NameError exception is raised. If the current scope is a function scope, and the name refers to a local variable that has not yet been bound to a value at the point where the name is used, an UnboundLocalError exception is raised. UnboundLocalError is a subclass of NameError.
https://stackoverflow.com/questions/22101836/how-can-a-name-be-unbound-in-python-what-code-can-cause-an-unboundlocalerror
Reference¶
https://stackoverflow.com/questions/22101836/how-can-a-name-be-unbound-in-python-what-code-can-cause-an-unboundlocalerror