Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
raised some exceptions that were allowed to follow trough and some pr…
Browse files Browse the repository at this point in the history
…ints to typer.echo

Signed-off-by: Miguel Brandão <[email protected]>
HolyMichael committed Aug 8, 2023
1 parent b636104 commit 325d6ac
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deepsearch/cps/cli/data_indices_typer.py
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ def list(
for index in indices
]
except ValueError as e:
print(f"Error occurred: {e}")
raise typer.Abort()

cli_output(results, output, headers="keys")
return
4 changes: 2 additions & 2 deletions deepsearch/cps/cli/projects.py
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@ def assign_user(
role=role,
)
else:
print("Project not found")
typer.echo("Project not found")
raise typer.Exit(code=1)


@@ -63,7 +63,7 @@ def remove(
if project is not None:
api.projects.remove(project=project)
else:
print("Project not found")
typer.echo("Project not found")
raise typer.Exit(code=1)


0 comments on commit 325d6ac

Please sign in to comment.