mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-06-11 18:09:52 -04:00
fix: handle empty env vars
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user