Skip to content

Commit ace1521

Browse files
committed
fix: raise click.Abort on missing token and instance name
1 parent ee8d1a5 commit ace1521

File tree

1 file changed

+1
-1
lines changed
  • src/datapilot/core/knowledge

1 file changed

+1
-1
lines changed

src/datapilot/core/knowledge/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def serve(token, instance_name, backend_url, port):
2121
click.echo(
2222
"Error: API token and instance name are required. Use --token and --instance-name options or set them in config.", err=True
2323
)
24-
return
24+
raise click.Abort
2525

2626
# Set context data for the handler
2727
KnowledgeBaseHandler.token = token

0 commit comments

Comments
 (0)