mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
7d62e921f8
commit
1f15db67f2
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user