Closed
Description
There is a change that you never enter the while loop, which makes the first_level
attribute undefined.
Lines 395 to 408 in efcfdb8
This can cause the following error.
UnboundLocalError: cannot access local variable 'first_level' where it is not associated with a value
I feel like this should have been caught by some pre-commit hook (e.g. mypy
).
Metadata
Metadata
Assignees
Labels
No labels