Skip to content

Commit

Permalink
.get() not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaraphael committed Oct 28, 2023
1 parent 3ce69e1 commit 8b584b1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cerulean_cloud/cloud_run_orchestrator/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 8b584b1

Please sign in to comment.