Traceback (most recent call last):


 "/Users/me/Code/Tests/build/dev/testMisc.py", line 8, in <module>

multipart_data = decoder.MultipartDecoder(body, contentType)


 "vendored/requests_toolbelt/multipart/decoder.py", line 113, in __init__

self._parse_body()


 "vendored/requests_toolbelt/multipart/decoder.py", line 151, in _parse_body

parts = self.content.split(b''.join((b'\r\n', boundary)))
TypeError: must be str or None, not bytes

Traceback (most recent call last):


 "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main

"__main__", fname, loader, pkg_name)


 "/usr/lib/python2.7/runpy.py", line 72, in _run_code

exec code in run_globals


 "/home/hypn0s/github/sslyze/sslyze/__main__.py", line 689, in <module>

main()


 "/home/hypn0s/github/sslyze/sslyze/__main__.py", line 668, in main

xml_final_string = tostring(xml_final_doc, encoding='UTF-8')


 "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1126, in tostring

ElementTree(element).write(file, encoding, method=method)


 "/usr/lib/python2.7/xml/etree/ElementTree.py", line 820, in write

serialize(write, self._root, encoding, qnames, namespaces)


 "/usr/lib/python2.7/xml/etree/ElementTree.py", line 939, in _serialize_xml

_serialize_xml(write, e, encoding, qnames, None)


 "/usr/lib/python2.7/xml/etree/ElementTree.py", line 939, in _serialize_xml

_serialize_xml(write, e, encoding, qnames, None)


 "/usr/lib/python2.7/xml/etree/ElementTree.py", line 932, in _serialize_xml

v = _escape_attrib(v, encoding)


 "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1092, in _escape_attrib

_raise_serialization_error(text)


 "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1052, in _raise_serialization_error

"cannot serialize %r (type %s)" % (text, type(text).__name__)
TypeError: cannot serialize None (type NoneType)
