skip neged relation here as well
authorsylvain.thenault@logilab.fr
Tue, 13 Jan 2009 17:51:54 +0100
changeset 391 42693fe3ef6f
parent 390 739d12586b9d
child 392 bccd9a788f7a
skip neged relation here as well
server/sources/pyrorql.py
--- a/server/sources/pyrorql.py	Tue Jan 13 17:51:31 2009 +0100
+++ b/server/sources/pyrorql.py	Tue Jan 13 17:51:54 2009 +0100
@@ -429,7 +429,13 @@
         try:
             if isinstance(node.children[0], Constant):
                 # simplified rqlst, reintroduce eid relation
-                restr, lhs = self.process_eid_const(node.children[0])
+                try:
+                    restr, lhs = self.process_eid_const(node.children[0])
+                except UnknownEid:
+                    # can safely skip not relation with an unsupported eid
+                    if node.neged(strict=True):
+                        return
+                    raise
             else:
                 lhs = node.children[0].accept(self)
                 restr = None