Better error message

master
Salvo 'LtWorf' Tomaselli 2020-08-18 16:41:39 +07:00
parent aea763021c
commit 5259921bb1
No known key found for this signature in database
GPG Key ID: B3A7CF0C801886CF
1 changed files with 1 additions and 1 deletions

@ -145,7 +145,7 @@ class Relation(NamedTuple):
if eval(c_expr, attributes):
content.append(i)
except Exception as e:
raise Exception(f'Failed to evaluate {expr}\n{e}')
raise Exception(f'Failed to evaluate {expr} with {attributes}\n{e}')
return Relation(self.header, frozenset(content))
def product(self, other: 'Relation') -> 'Relation':