fix(cli): catch SystemExit in tool-repo login so crewai-less login degrades gracefully

This commit is contained in:
Greyson Lalonde
2026-05-06 04:47:48 +08:00
parent e61142c60c
commit d90a1edcf6

View File

@@ -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",