diff --git a/ckanext/versioned_datastore/lib/downloads/derivatives/dwc/generator.py b/ckanext/versioned_datastore/lib/downloads/derivatives/dwc/generator.py index e3660109..383cebe8 100644 --- a/ckanext/versioned_datastore/lib/downloads/derivatives/dwc/generator.py +++ b/ckanext/versioned_datastore/lib/downloads/derivatives/dwc/generator.py @@ -205,6 +205,9 @@ def _extract_ext(subdict): ext_extracted = [_extract_ext(x) for x in v] elif isinstance(v, dict): ext_extracted = [_extract_ext(v)] + elif v is None: + # skip if empty + ext_extracted = [] else: ext_extracted = [_extract_ext({k: v})] ext[extension_map[k]] = ext_extracted