From 2b9c76f6bfebf4f3bcea3b663ca2280398b39d06 Mon Sep 17 00:00:00 2001 From: bojiang Date: Tue, 3 Dec 2024 09:12:14 +0000 Subject: [PATCH] fix: handle empty env vars --- src/openllm/local.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openllm/local.py b/src/openllm/local.py index e474cc105..d44f48b0f 100644 --- a/src/openllm/local.py +++ b/src/openllm/local.py @@ -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']