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 b59492b commit 3fb2c68Copy full SHA for 3fb2c68
redis/commands/search/query.py
@@ -194,8 +194,10 @@ def _get_args_tags(self):
194
args += self._ids
195
if self._slop >= 0:
196
args += ["SLOP", self._slop]
197
- if self._timeout is not None:
+ if isinstance(self._timeout, int) and self._timeout >= 0:
198
args += ["TIMEOUT", self._timeout]
199
+ else:
200
+ raise AttributeError("TIMEOUT requires a non negative integer.")
201
if self._in_order:
202
args.append("INORDER")
203
if self._return_fields:
0 commit comments