mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-07 18:19:00 +00:00
fix(cli): catch SystemExit in tool-repo login so crewai-less login degrades gracefully
This commit is contained in:
@@ -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]",
|
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",
|
style="green",
|
||||||
)
|
)
|
||||||
except Exception:
|
except (Exception, SystemExit):
|
||||||
console.print(
|
console.print(
|
||||||
"\n[bold yellow]Warning:[/bold yellow] Authentication with the Tool Repository failed.",
|
"\n[bold yellow]Warning:[/bold yellow] Authentication with the Tool Repository failed.",
|
||||||
style="yellow",
|
style="yellow",
|
||||||
|
|||||||
Reference in New Issue
Block a user