Commits

Javed Khan committed 362fc29

fixes #313: Wrapper - handle case where sub-node is None

  • Participants
  • Parent commits 74dc635

Comments (0)

Files changed (1)

src/whoosh/qparser/syntax.py

     merging = False
 
     def query(self, parser):
-        return attach(self.qclass(self.nodes[0].query(parser)), self)
+        q = self.nodes[0].query(parser)
+        if q:
+            return attach(self.qclass(q), self)
 
 
 class ErrorNode(SyntaxNode):