diff --git a/opendevin/core/config.py b/opendevin/core/config.py index 5ec5deb0d4..f453ce5cd7 100644 --- a/opendevin/core/config.py +++ b/opendevin/core/config.py @@ -192,7 +192,7 @@ def load_from_env(config: AppConfig, env_or_toml_dict: dict | os._Environ): # Attempt to cast the env var to type hinted in the dataclass if field_type is bool: - cast_value = value.lower() in ['true', '1'] + cast_value = str(value).lower() in ['true', '1'] else: cast_value = field_type(value) setattr(sub_config, field_name, cast_value)