From 542cd756b7d5f66aa056d5d4c96d4392b4071229 Mon Sep 17 00:00:00 2001 From: troyraen Date: Sat, 1 Jun 2024 15:40:24 -0700 Subject: [PATCH] fix #228 --- broker/cloud_functions/lite/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/broker/cloud_functions/lite/main.py b/broker/cloud_functions/lite/main.py index 7ed14eda..f2792bea 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[schema_map["prvSources"]] + access_prev = alert_dict.get(schema_map["prvSources"], {}) prev_sources = []