From 8b584b11c83231e1711bcbaaaf55b1c07a246806 Mon Sep 17 00:00:00 2001 From: Jona Date: Fri, 27 Oct 2023 23:52:57 -0400 Subject: [PATCH] .get() not defined --- cerulean_cloud/cloud_run_orchestrator/handler.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cerulean_cloud/cloud_run_orchestrator/handler.py b/cerulean_cloud/cloud_run_orchestrator/handler.py index 92b36201..651713ca 100644 --- a/cerulean_cloud/cloud_run_orchestrator/handler.py +++ b/cerulean_cloud/cloud_run_orchestrator/handler.py @@ -221,10 +221,9 @@ def flatten_feature_list( """flatten a feature list coming from inference""" flat_list: List[geojson.Feature] = [] for r in stack_list: - if r.get("stack"): - for i in r.stack: - for f in i.features: - flat_list.append(f) + for i in r.stack: + for f in i.features: + flat_list.append(f) return flat_list