Skip to content

Commit

Permalink
fix: bug for new user flow
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarsh-dixit committed Mar 31, 2024
1 parent 675f64d commit 504eb2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/composio/composio_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def list_triggers(args):
console.print("[red] No triggers found for the specified app.[/red]")

console.print("\n")
console.print(f"To enable a trigger, use the command: [green] composio enable-trigger <trigger_name>[/green]\n")
console.print(f"To enable a trigger, use the command: [green] composio-cli enable-trigger <trigger_name>[/green]\n")
except Exception as e:
console.print(f"[red] Error occurred during listing triggers: {e}[/red]")
sys.exit(1)
Expand All @@ -86,7 +86,7 @@ def enable_trigger(args):
console.print(f"\n[green]> Enabling trigger: {trigger_name}...[/green]\n")
try:
trigger_requirements = client.get_trigger_requirements(trigger_ids=[trigger_name])
if not trigger_requirements:
if not trigger_requirements or len(trigger_requirements) == 0:
console.print(f"[red] Trigger not found for the specified app.[/red]")
sys.exit(1)
app_key = trigger_requirements[0]["appKey"]
Expand Down

0 comments on commit 504eb2e

Please sign in to comment.