geosolutions-it / geonode-rndt

Geonode-RNDT is a Django App to let GeoNode be able to expose the metadata compliant to the RNDT standard
BSD 2-Clause "Simplified" License
1 stars 1 forks source link

Error when parsing missing accuracy #100

Closed etj closed 1 year ago

etj commented 1 year ago
Traceback (most recent call last):
  File "/usr/src/geonode/geonode/upload/upload.py", line 798, in final_step
    layer_uuid, vals, regions, keywords, custom = parse_metadata(
  File "/usr/src/geonode/geonode/layers/metadata.py", line 257, in parse_metadata
    uuid, vals, regions, keywords, custom = parser(exml, uuid, vals, regions, keywords, custom)
  File "/usr/src/rndt/rndt/layers/metadata.py", line 39, in rndt_parser
    rndt_parser.get_accuracy(custom)
  File "/usr/src/rndt/rndt/layers/metadata.py", line 153, in get_accuracy
    accuracy = ast.literal_eval(accuracy.text)
AttributeError: 'NoneType' object has no attribute 'text'