js2c: raise proper Exception, not a string
Fixes the following error message: TypeError: exceptions must be old-style classes or derived from BaseException, not str Fixes #4303.
This commit is contained in:
parent
335f20896a
commit
aa3441ae45
@ -206,7 +206,7 @@ def ReadMacros(lines):
|
||||
fun = eval("lambda " + ",".join(args) + ': ' + body)
|
||||
macros[name] = PythonMacro(args, fun)
|
||||
else:
|
||||
raise ("Illegal line: " + line)
|
||||
raise Exception("Illegal line: " + line)
|
||||
return (constants, macros)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user