Merge branch 'planetmint-tarantool' of https://github.com/liviu-lesan/planetmint into liviu-lesan-planetmint-tarantool

This commit is contained in:
Lorenz Herzberger 2022-05-25 10:17:43 +02:00
commit f0c827057e
No known key found for this signature in database
GPG Key ID: FA5EE906EB55316A

View File

@ -207,6 +207,8 @@ def create_indexes(space_name):
_output = run_command_with_output(command=index_cmd.encode()) _output = run_command_with_output(command=index_cmd.encode())
if "exists" in _output: if "exists" in _output:
raise tarantool.error.SchemaError(f"Index {index_name} already exists.") raise tarantool.error.SchemaError(f"Index {index_name} already exists.")
else:
print(f"Index '{index_name}' created succesfully.")
except tarantool.error.SchemaError as exists_error: except tarantool.error.SchemaError as exists_error:
print(exists_error) print(exists_error)