Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenliang123 committed Jun 17, 2024
1 parent a4a53fa commit ed74e16
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions api/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,13 +500,11 @@ def add_qdrant_doc_id_index(field: str):
except UnexpectedResponse as e:
# Collection does not exist, so return
if e.status_code == 404:
click.echo(
click.style(f'Collection not found, collection_name:{binding.collection_name}.', fg='red'))
click.echo(click.style(f'Collection not found, collection_name:{binding.collection_name}.', fg='red'))
continue
# Some other error occurred, so re-raise the exception
else:
click.echo(click.style(f'Failed to create qdrant index, collection_name:{binding.collection_name}.',
fg='red'))
click.echo(click.style(f'Failed to create qdrant index, collection_name:{binding.collection_name}.', fg='red'))

except Exception as e:
click.echo(click.style('Failed to create qdrant client.', fg='red'))
Expand Down

0 comments on commit ed74e16

Please sign in to comment.