This commit is contained in:
Kovid Goyal 2015-08-04 14:02:56 +05:30
parent 7d62e921f8
commit 1f15db67f2

View File

@ -189,7 +189,7 @@ class JSError(Exception):
else: else:
setattr(self, 'js_message', v) setattr(self, 'js_message', v)
else: else:
Exception.__init__(self, type('')(e)) Exception.__init__(self, type('')(to_python(e)))
else: else:
# Happens if js code throws a string or integer rather than a # Happens if js code throws a string or integer rather than a
# subclass of Error # subclass of Error