From 1f15db67f2a10c0fa6a2cee6563d6c6ed89eea61 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 4 Aug 2015 14:02:56 +0530 Subject: [PATCH] ... --- src/duktape/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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