Why do I get AttributeError: ‘NoneType’ object has no attribute ‘something’?

I keep getting an error that says

AttributeError: 'NoneType' object has no attribute 'something'

The code I have is too long to post here. What general scenarios would cause this AttributeError, what is NoneType supposed to mean and how can I narrow down what’s going on?

10 Answers
10

Leave a Comment