diff --git a/src/duktape/__init__.py b/src/duktape/__init__.py index d4a64c5f78..64aee612d9 100644 --- a/src/duktape/__init__.py +++ b/src/duktape/__init__.py @@ -189,7 +189,7 @@ class JSError(Exception): else: setattr(self, 'js_message', v) else: - Exception.__init__(self, type('')(e)) + Exception.__init__(self, type('')(to_python(e))) else: # Happens if js code throws a string or integer rather than a # subclass of Error