mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-21 21:14:17 +02:00
Don't print env vars to console when format is wrong
This commit is contained in:
parent
163ea02365
commit
2b547309ec
1 changed files with 1 additions and 3 deletions
|
|
@ -50,9 +50,7 @@ def _get_npx_command():
|
|||
def _parse_env_var(env_var: str) -> tuple[str, str]:
|
||||
"""Parse environment variable string in format KEY=VALUE."""
|
||||
if "=" not in env_var:
|
||||
logger.error(
|
||||
f"Invalid environment variable format: {env_var}. Must be KEY=VALUE"
|
||||
)
|
||||
logger.error("Invalid environment variable format. Must be KEY=VALUE")
|
||||
sys.exit(1)
|
||||
key, value = env_var.split("=", 1)
|
||||
return key.strip(), value.strip()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue