Fixed linter issue.
This commit is contained in:
parent
f5b507369c
commit
6193c238d8
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ def schema_hash_key(index_name):
|
||||||
|
|
||||||
async def create_index(redis: Redis, index_name, schema, current_hash):
|
async def create_index(redis: Redis, index_name, schema, current_hash):
|
||||||
db_number = redis.connection_pool.connection_kwargs.get("db")
|
db_number = redis.connection_pool.connection_kwargs.get("db")
|
||||||
if db_number and db_number > 0:
|
if db_number and db_number > 0:
|
||||||
raise MigrationError(
|
raise MigrationError(
|
||||||
"Creating search indexes is only supported in database 0. "
|
"Creating search indexes is only supported in database 0. "
|
||||||
f"You attempted to create an index in database {db_number}"
|
f"You attempted to create an index in database {db_number}"
|
||||||
|
|
Loading…
Reference in a new issue