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