web/facet.py
changeset 6599 d3008cb6d1c3
parent 6582 8eb7883b4223
child 6623 4cb6d319d16d
--- a/web/facet.py	Fri Oct 22 17:38:47 2010 +0200
+++ b/web/facet.py	Fri Oct 22 17:40:23 2010 +0200
@@ -711,7 +711,13 @@
         rql = 'Any %s LIMIT 1 WHERE NOT %s %s %s, %s' % (
             self.filtered_variable.name, subj, self.rtype, obj,
             self.rqlst.where.as_string())
-        return bool(self.rqlexec(rql, self.cw_rset and self.cw_rset.args))
+        try:
+            return bool(self.rqlexec(rql, self.cw_rset and self.cw_rset.args))
+        except:
+            # catch exception on executing rql, work-around #1356884 until a
+            # proper fix
+            self.exception('cant handle rql generated by %s', self)
+            return False
 
     def _add_not_rel_restr(self, rel):
         nrrel = nodes.Not(_make_relation(self.rqlst, self.filtered_variable,