From e99eaa1a146e456d68ff08cf3e5d31383cd197ca Mon Sep 17 00:00:00 2001 From: Travis Dent Date: Wed, 18 Dec 2024 18:37:49 -0800 Subject: [PATCH] Prefix environment variables in agent_connect tool --- agentstack/tools/agent_connect/__init__.py | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/agentstack/tools/agent_connect/__init__.py b/agentstack/tools/agent_connect/__init__.py index 2bf3115..44528a3 100644 --- a/agentstack/tools/agent_connect/__init__.py +++ b/agentstack/tools/agent_connect/__init__.py @@ -17,21 +17,16 @@ ssl_key_path = os.getenv("AGENT_CONNECT_SSL_KEY_PATH") if not host_domain: - raise Exception( - ( - "Host domain has not been provided.\n" - "Did you set the AGENT_CONNECT_HOST_DOMAIN in you project's .env file?" - ) - ) + raise Exception(( + "Host domain has not been provided.\n" + "Did you set the AGENT_CONNECT_HOST_DOMAIN in you project's .env file?" + )) if not did_document_path: - raise Exception( - ( - "DID document path has not been provided.\n" - "Did you set the AGENT_CONNECT_DID_DOCUMENT_PATH in you project's .env file?" - ) - ) - + raise Exception(( + "DID document path has not been provided.\n" + "Did you set the AGENT_CONNECT_DID_DOCUMENT_PATH in you project's .env file?" + )) def generate_did_info(node: SimpleNode, did_document_path: str) -> None: """