From d90a1edcf66f2c3330d270dc5961032eb91d2726 Mon Sep 17 00:00:00 2001 From: Greyson Lalonde Date: Wed, 6 May 2026 04:47:48 +0800 Subject: [PATCH] fix(cli): catch SystemExit in tool-repo login so crewai-less login degrades gracefully --- lib/cli/src/crewai_cli/authentication/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli/src/crewai_cli/authentication/main.py b/lib/cli/src/crewai_cli/authentication/main.py index 5321b9171..2ef913372 100644 --- a/lib/cli/src/crewai_cli/authentication/main.py +++ b/lib/cli/src/crewai_cli/authentication/main.py @@ -47,7 +47,7 @@ class AuthenticationCommand(_BaseAuthenticationCommand): f"You are now authenticated to the tool repository for organization [bold cyan]'{settings.org_name if settings.org_name else settings.org_uuid}'[/bold cyan]", style="green", ) - except Exception: + except (Exception, SystemExit): console.print( "\n[bold yellow]Warning:[/bold yellow] Authentication with the Tool Repository failed.", style="yellow",