pymods icon indicating copy to clipboard operation
pymods copied to clipboard

Empty elements throwing TypeErrors

Open mrmiguez opened this issue 8 years ago • 0 comments

For example

        <subject>
          <name authority="lcnaf" authorityURI="http://id.loc.gov/authorities/names" type="personal" valueURI="http://id.loc.gov/authorities/names/n85385724">
            <namePart type="date"/>
            <namePart type="given">Benjamin V.</namePart>
            <namePart type="family">Cohen</namePart>
          </name>
        </subject>

returns KeyError - sourceResource.subject: None, Can't convert 'NoneType' object to str implicitly

mrmiguez avatar Mar 08 '17 17:03 mrmiguez