Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
recover exception catch
Browse files Browse the repository at this point in the history
  • Loading branch information
czhen-zilliz committed Nov 5, 2021
1 parent 0102854 commit 63b4d0b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions milvus_cli/scripts/milvus_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1003,14 +1003,14 @@ def runCliPrompt():
# trap argparse error message
# print('error', SystemExit)
continue
# except ParameterException as pe:
# click.echo(message=f"{str(pe)}", err=True)
# except ConnectException as ce:
# click.echo(
# message="Connect to milvus Error!\nPlease check your connection.", err=True)
# except Exception as e:
# click.echo(
# message=f"Error occurred!\n{str(e)}", err=True)
except ParameterException as pe:
click.echo(message=f"{str(pe)}", err=True)
except ConnectException as ce:
click.echo(
message="Connect to milvus Error!\nPlease check your connection.", err=True)
except Exception as e:
click.echo(
message=f"Error occurred!\n{str(e)}", err=True)
except (KeyboardInterrupt, EOFError):
print()
sys.exit(0)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='milvus_cli',
version='0.1.8beta2',
version='0.1.8beta3',
author='Milvus Team',
author_email='milvus-team@zilliz.com',
url='https://github.com/milvus-io/milvus_cli',
Expand Down

0 comments on commit 63b4d0b

Please sign in to comment.