summaryrefslogtreecommitdiffstats
path: root/pyload/utils/JsEngine.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/utils/JsEngine.py')
-rw-r--r--pyload/utils/JsEngine.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/utils/JsEngine.py b/pyload/utils/JsEngine.py
index f6f28f457..c516dfc73 100644
--- a/pyload/utils/JsEngine.py
+++ b/pyload/utils/JsEngine.py
@@ -9,7 +9,7 @@ from urllib import quote
from pyload.utils import encode, decode, uniqify
-class JsEngine:
+class JsEngine(object):
""" JS Engine superclass """
def __init__(self, core, engine=None): #: engine can be a jse name """string""" or an AbstractEngine """class"""
@@ -103,7 +103,7 @@ class JsEngine:
return results[0]
-class AbstractEngine:
+class AbstractEngine(object):
""" JSE base class """
NAME = ""
@@ -123,7 +123,7 @@ class AbstractEngine:
except ImportError:
try:
out, err = cls().eval("print(23+19)")
- except:
+ except Exception:
res = False
else:
res = out == "42"