python - NoneType has no attribute .format - Stack Overflow
stackoverflow.com › questions › 25172015Aug 07, 2014 · I started of without the if statement. That gave me the following errormessage: AttributeError: 'NoneType' object has no attribute 'format'. So I added the if statement to check weather the data is of type None or not. It works now for the first "round" of iteration. It takes the first attribute of the list and passes it to langid. But afterwards I get the same error message as above.