Skip to content

'NoneType' object is not subscriptable, xmlplain.xml_from_obj #3

Description

@sumits99

dict to xml failed..
xml=xmlplain.xml_from_obj(dictionary)

Traceback (most recent call last):
File "", line 1, in
File "/Users/ssrivastava02/Desktop/scriptRepo/yaml_utils/venv/lib/python3.8/site-packages/xmlplain.py", line 556, in xml_from_obj
return xml_from_events(events, outf, encoding=encoding, process_content=process_content)
File "/Users/ssrivastava02/Desktop/scriptRepo/yaml_utils/venv/lib/python3.8/site-packages/xmlplain.py", line 275, in xml_from_events
for evt in events: generator.append(evt)
File "/Users/ssrivastava02/Desktop/scriptRepo/yaml_utils/venv/lib/python3.8/site-packages/xmlplain.py", line 231, in append
self.start[1][value[0]] = value[1]
TypeError: 'NoneType' object is not subscriptable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions