Skip to content
Snippets Groups Projects
Commit 267ef735 authored by David McKenna's avatar David McKenna
Browse files

REVERT: Continue to raise errors for missing static keys

parent a05ab1d1
No related branches found
No related tags found
1 merge request!38FIX: Pass on invalid station configurations instead of exiting.
Pipeline #121306 passed
Pipeline: l2json

#121307

    ...@@ -103,7 +103,7 @@ def get_last_valid_device_value( ...@@ -103,7 +103,7 @@ def get_last_valid_device_value(
    value = get_value_from_metadata(metadata, antennafield, output_key, device_mapping) value = get_value_from_metadata(metadata, antennafield, output_key, device_mapping)
    if value is not None: if value is not None:
    return value return value
    print(f"No value found for {output_key=} in provided metadata dicts.") raise KeyError(f"No value found for {output_key=} in provided metadata dicts.")
    # def get_static_metadata(filtered_metadata: list[dict[str, Any]], antennafield: str, keys: set[str]) -> dict[str, str]: # def get_static_metadata(filtered_metadata: list[dict[str, Any]], antennafield: str, keys: set[str]) -> dict[str, str]:
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment