diff --git a/relational/relation.py b/relational/relation.py index 1d3ffd2..c7d34f0 100644 --- a/relational/relation.py +++ b/relational/relation.py @@ -130,7 +130,10 @@ class Relation (object): newt = relation() newt.header = Header(self.header) - c_expr = compile(expr, 'selection', 'eval') + try: + c_expr = compile(expr, 'selection', 'eval') + except: + raise Exception('Failed to compile expression: %s' % expr) for i in self.content: # Fills the attributes dictionary with the values of the tuple