Skip to content

Commit

Permalink
fix: handle empty env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
bojiang committed Dec 3, 2024
1 parent 4032b82 commit 2b9c76f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openllm/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def prep_env_vars(bento: BentoInfo):

env_vars = bento.envs
for env_var in env_vars:
if 'value' not in env_var:
if not env_var.get("value"):
continue
key = env_var['name']
value = env_var['value']
Expand Down

0 comments on commit 2b9c76f

Please sign in to comment.