From 0f4f61fd1b9d87927dc9812bab5fb04b3201d30d Mon Sep 17 00:00:00 2001 From: Joao Moura Date: Thu, 25 Jun 2026 23:32:04 -0700 Subject: [PATCH] Format deploy browser URL helper --- lib/cli/src/crewai_cli/deploy/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/cli/src/crewai_cli/deploy/main.py b/lib/cli/src/crewai_cli/deploy/main.py index c8032ee6f..a114a23dd 100644 --- a/lib/cli/src/crewai_cli/deploy/main.py +++ b/lib/cli/src/crewai_cli/deploy/main.py @@ -106,8 +106,7 @@ def _deployment_page_url(base_url: str, json_response: dict[str, Any]) -> str | if not identifier: return None return ( - f"{base_url.rstrip('/')}/crewai_plus/deployments/" - f"{quote(identifier, safe='')}" + f"{base_url.rstrip('/')}/crewai_plus/deployments/{quote(identifier, safe='')}" ) @@ -224,7 +223,7 @@ class DeployCommand(BaseCommand, PlusAPIMixin): console.print(f"\nOpening deployment page: [blue]{deployment_url}[/blue]") try: webbrowser.open(deployment_url) - except Exception: # pragma: no cover - browser backends are environment-specific + except Exception: # pragma: no cover console.print( "Could not open the deployment page automatically.", style="yellow",