errors.fyi community error code reference
UnboundLocalError
python

UnboundLocalError

A subclass of NameError raised when a local variable is referenced before it has been assigned a value.

References

โ† all namespaces for UnboundLocalError