We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9fbd56 commit d60fce5Copy full SHA for d60fce5
aredis_om/checks.py
@@ -6,11 +6,8 @@
6
7
@lru_cache(maxsize=None)
8
async def check_for_command(conn, cmd):
9
- try:
10
- cmd_info = await conn.execute_command("command", "info", cmd)
11
- return True
12
- except TypeError:
13
- return False
+ cmd_info = await conn.execute_command("command", "info", cmd)
+ return not None in cmd_info
14
15
16
async def has_redis_json(conn=None):
0 commit comments