[오류][해결] attributeerror 'nonetype' object has no attribute 'get'
본문 바로가기

Backend

[오류][해결] attributeerror 'nonetype' object has no attribute 'get'

논타입에러인데 db에서 값이 안나와서 그랬던것이었다.

디버깅을 꼭해보자.

if문 처리를 해줄려고했는데 ~.get이 나오는 라인에서 걸리는것이 문제였음

~.get이나오는 라인자체를

'if company_name != None:' 안에

집어넣어버리니 문제 해결됨!

반응형