mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-04 05:04:48 +01:00
Oops
This commit is contained in:
parent
6186a266e7
commit
1c8eb706af
1 changed files with 2 additions and 2 deletions
|
|
@ -54,13 +54,13 @@ def __init__(self, base_dirs=()):
|
|||
|
||||
def eval(self, code='', noreturn=False):
|
||||
try:
|
||||
self._ctx.eval(code, noreturn)
|
||||
return self._ctx.eval(code, noreturn)
|
||||
except dukpy.JSError as e:
|
||||
raise JSError(e)
|
||||
|
||||
def eval_file(self, path, noreturn=False):
|
||||
try:
|
||||
self._ctx.eval_file(path, noreturn)
|
||||
return self._ctx.eval_file(path, noreturn)
|
||||
except dukpy.JSError as e:
|
||||
raise JSError(e)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue