Fix exception

The reported exception will look uglier but will work for any kind of
weird tokenization that occurred.
master
Salvo 'LtWorf' Tomaselli 2015-09-10 10:13:00 +07:00
parent df5ff35aa9
commit f7ac34b761
1 changed files with 1 additions and 2 deletions

@ -165,8 +165,7 @@ class Node (object):
self.child = node(expression[2 + i])
return
raise ParserException("Expected operator in '%s'" % ' '.join(expression))
pass
raise ParserException("Expected operator in '%s'" % expression)
def toCode(self):
'''This method converts the AST into a python code object'''