You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throws IndexError: list index out of range in whoosh\qparser\syntax.py, line 376
classWrapper(GroupNode):
"""Intermediate base class for nodes that wrap a single sub-node. """merging=Falsedefquery(self, parser):
q=self.nodes[0].query(parser) # <----- IndexErrorifq:
returnattach(self.qclass(q), self)
A malformed query such as:
throws
IndexError: list index out of range
inwhoosh\qparser\syntax.py
, line 376[<OP 'NOT'>, <OP 'OR'>, <None:'foobar'>]
➡️[<NotGroup <OP 'OR'>>, <None:'foobar'>]
➡️[<NotGroup >, <None:'foobar'>]
and
<NotGroup >
(no inner nodes) makesself.nodes[0]
angry. 😄Proposed fix:
The text was updated successfully, but these errors were encountered: