diff --git a/broker/cloud_functions/lite/main.py b/broker/cloud_functions/lite/main.py index f2792bea..58c54b15 100644 --- a/broker/cloud_functions/lite/main.py +++ b/broker/cloud_functions/lite/main.py @@ -50,7 +50,7 @@ def semantic_compression(alert_dict, schema_map) -> dict: "filter": source[schema_map["filter"]], } - access_prev = alert_dict.get(schema_map["prvSources"], {}) + access_prev = alert_dict[schema_map["prvSources"]] or [] prev_sources = []