_parse_xml_metadata should not choke on absent firstChild

Issue #3 resolved
Anonymous created an issue

When an element has no firstChild, an exception is raised:

  ['NoneType' object has no attribute 'data']

The code should be fixed to look more like the following or an equivalent:

if node.firstChild:

Comments (4)

  1. Log in to comment