mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-07 11:28:09 +02:00
Fix seed config when left empty
This commit is contained in:
parent
f55e5415bb
commit
3af81ca96b
@ -27,7 +27,7 @@ class SeedConfiguration(BaseModel):
|
||||
|
||||
def _parse_env() -> SeedConfiguration | None:
|
||||
seed_config_str = os.getenv(_SEED_CONFIG_ENV_VAR_NAME)
|
||||
if seed_config_str is None:
|
||||
if not seed_config_str:
|
||||
return None
|
||||
seed_config = SeedConfiguration.parse_raw(seed_config_str)
|
||||
return seed_config
|
||||
|
Loading…
x
Reference in New Issue
Block a user