Get Attributeerror Nonetype Object Has No Attribute Encode When

Get Attributeerror Nonetype Object Has No Attribute Encode When