Improve: remove extra spaces in get_from_env error (#15064)

This commit is contained in:
chyroc 2023-12-23 03:50:03 +08:00 committed by GitHub
parent c3f8733aef
commit 0e149bbb4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,5 +41,5 @@ def get_from_env(key: str, env_key: str, default: Optional[str] = None) -> str:
raise ValueError( raise ValueError(
f"Did not find {key}, please add an environment variable" f"Did not find {key}, please add an environment variable"
f" `{env_key}` which contains it, or pass" f" `{env_key}` which contains it, or pass"
f" `{key}` as a named parameter." f" `{key}` as a named parameter."
) )