Skip to content

Commit 56388ea

Browse files
committed
raise dont print
1 parent 7ba20d0 commit 56388ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quantflow/cli/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def profile(ctx: click.Context, symbol: str) -> None:
3232
app = from_context(ctx)
3333
data = asyncio.run(get_profile(symbol))
3434
if not data:
35-
app.error(f"Company {symbol} not found - try searching")
35+
raise click.UsageError(f"Company {symbol} not found - try searching")
3636
else:
3737
d = data[0]
3838
app.print(d.pop("description") or "")

0 commit comments

Comments
 (0)