From 6193c238d809d780b17bbdf489245b78ef478e1f Mon Sep 17 00:00:00 2001 From: Simon Prickett Date: Thu, 7 Apr 2022 10:22:32 +0100 Subject: [PATCH] Fixed linter issue. --- aredis_om/model/migrations/migrator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aredis_om/model/migrations/migrator.py b/aredis_om/model/migrations/migrator.py index b113cc8..1af7428 100644 --- a/aredis_om/model/migrations/migrator.py +++ b/aredis_om/model/migrations/migrator.py @@ -41,7 +41,7 @@ def schema_hash_key(index_name): async def create_index(redis: Redis, index_name, schema, current_hash): 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( "Creating search indexes is only supported in database 0. " f"You attempted to create an index in database {db_number}"