Skip to content

Commit

Permalink
fix KeyError "cost"
Browse files Browse the repository at this point in the history
  • Loading branch information
franzmueller committed Aug 29, 2023
1 parent ef6424d commit 546e0df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,10 @@ def fill_operator_info(flow, user_id) -> int :
cell["name"] = operator["name"]
cell["image"] = operator["image"]
cell["deploymentType"] = operator["deploymentType"]
cell["cost"] = operator["cost"]
if "cost" in operator:
cell["cost"] = operator["cost"]
else:
cell["cost"] = 0
return 200

if bool(os.getenv('DEBUG', '')):
Expand Down

0 comments on commit 546e0df

Please sign in to comment.