AttributeError: 'NoneType' object has no attribute 'empty' code example Example: AttributeError: 'NoneType' object has no attribute 'format' print "{} World".format('Hello')