# HG changeset patch # User Sylvain Thénault # Date 1287762023 -7200 # Node ID d3008cb6d1c333f5b3c6ff6004ec2946aab498c4 # Parent 78eaccfbd2b76fc9f048dad3905cc6cf943b4d33 [ms] catch exception on executing rql, work-around #1356884 until a proper fix diff -r 78eaccfbd2b7 -r d3008cb6d1c3 web/facet.py --- 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,