에러 코드 포털
PythonPython오류 코드

UnboundLocalError

UnboundLocalError

값이 할당되지 않은 지역 변수를 참조한 경우입니다.

Raised when a reference is made to a local variable in a function or method, but no value has been bound to that variable. This is a subclass of NameError.

해결·진단 링크

문서의 제품·버전·발생 환경이 현재 상황과 일치하는지 먼저 확인하세요.