diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-11-24 01:14:06 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-11-24 01:14:09 +0100 |
commit | aa3441ae45b348aa2e1b422d1c5a69b49e909a95 (patch) | |
tree | b418f7059c58be7cc1d77be672c074f43009ee55 | |
parent | 335f20896aaf4a96b15e2fcc69b384ef3182f92c (diff) | |
download | nodejs-aa3441ae45b348aa2e1b422d1c5a69b49e909a95.tar.gz nodejs-aa3441ae45b348aa2e1b422d1c5a69b49e909a95.tar.bz2 nodejs-aa3441ae45b348aa2e1b422d1c5a69b49e909a95.zip |
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.
-rwxr-xr-x | tools/js2c.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/js2c.py b/tools/js2c.py index 7c83c67ba..772a0f5f6 100755 --- a/tools/js2c.py +++ b/tools/js2c.py @@ -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) |