Commits

Anonymous committed 15d3a6b

Not implemenented binary ops also raise UnevaluatableError

Comments (0)

Files changed (1)

lib/sqlalchemy/orm/evaluator.py

                 if left_val is None or right_val is None:
                     return None
                 return operator(eval_left(obj), eval_right(obj))
+        else:
+            raise UnevaluatableError("Cannot evaluate %s with operator %s" % (type(clause).__name__, clause.operator))
         return evaluate
 
     def visit_unary(self, clause):