Skip to content
Snippets Groups Projects
Commit 65d7122a authored by Christophe Benz's avatar Christophe Benz
Browse files

Let value_to_float handle None values

parent c9194915
No related branches found
No related tags found
No related merge requests found
Pipeline #11879 passed with stage
in 1 hour, 26 minutes, and 16 seconds
......@@ -170,9 +170,7 @@ def convert_sdmx_element(element, dataset_json, dataset_context, dsd_infos, seri
timings["observations_labels"] += time.time() - t0
obs_value = element.attrib.get("OBS_VALUE")
if obs_value is not None:
obs_value = observations.value_to_float(obs_value)
obs_value = observations.value_to_float(element.attrib.get("OBS_VALUE"))
dataset_context["current_series_observations"].append([
element.attrib["TIME_PERIOD"], # SDMX periods are already normalized.
obs_value,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment