Fix exception
The reported exception will look uglier but will work for any kind of weird tokenization that occurred.
This commit is contained in:
parent
df5ff35aa9
commit
f7ac34b761
@ -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'''
|
||||
|
Loading…
Reference in New Issue
Block a user