diff options
Diffstat (limited to 'pyload/webui/app/cnl.py')
-rw-r--r-- | pyload/webui/app/cnl.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pyload/webui/app/cnl.py b/pyload/webui/app/cnl.py index 1444983c2..e00e47f66 100644 --- a/pyload/webui/app/cnl.py +++ b/pyload/webui/app/cnl.py @@ -11,7 +11,7 @@ from pyload.webui import PYLOAD, DL_ROOT, JS try: from Crypto.Cipher import AES -except: +except Exception: pass @@ -61,7 +61,7 @@ def addcrypted(): try: PYLOAD.addPackage(package, [dlc_path], 0) - except: + except Exception: return HTTPError() else: return "success\r\n" @@ -82,7 +82,7 @@ def addcrypted2(): else: try: jk = re.findall(r"return ('|\")(.+)('|\")", jk)[0][1] - except: + except Exception: ## Test for some known js functions to decode if jk.find("dec") > -1 and jk.find("org") > -1: org = re.findall(r"var org = ('|\")([^\"']+)", jk)[0][1] @@ -94,7 +94,7 @@ def addcrypted2(): try: Key = unhexlify(jk) - except: + except Exception: print "Could not decrypt key, please install py-spidermonkey or ossp-js" return "failed" @@ -110,7 +110,7 @@ def addcrypted2(): PYLOAD.addPackage(package, result, 0) else: PYLOAD.generateAndAddPackages(result, 0) - except: + except Exception: return "failed can't add" else: return "success\r\n" |