diff --git a/aredis_om/checks.py b/aredis_om/checks.py index 78aa75c..be2332c 100644 --- a/aredis_om/checks.py +++ b/aredis_om/checks.py @@ -7,7 +7,7 @@ from aredis_om.connections import get_redis_connection @lru_cache(maxsize=None) async def check_for_command(conn, cmd): cmd_info = await conn.execute_command("command", "info", cmd) - return not None in cmd_info + return None not in cmd_info @lru_cache(maxsize=None)