summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/captcha/AdsCaptcha.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-11 21:25:47 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-11 21:25:47 +0100
commit1873b51db68b2c936d7b67f23dea4a5e49186568 (patch)
treee6c6585e160421686c36265d6d98eac946e92bb9 /pyload/plugins/captcha/AdsCaptcha.py
parentRename attr NAME to __name (diff)
downloadpyload-1873b51db68b2c936d7b67f23dea4a5e49186568.tar.xz
Spare code fixes
Diffstat (limited to 'pyload/plugins/captcha/AdsCaptcha.py')
-rw-r--r--pyload/plugins/captcha/AdsCaptcha.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyload/plugins/captcha/AdsCaptcha.py b/pyload/plugins/captcha/AdsCaptcha.py
index 239d61a19..8655e4f7b 100644
--- a/pyload/plugins/captcha/AdsCaptcha.py
+++ b/pyload/plugins/captcha/AdsCaptcha.py
@@ -56,7 +56,7 @@ class AdsCaptcha(Captcha):
try:
challenge = re.search("challenge: '(.+?)',", html).group(1)
server = re.search("server: '(.+?)',", html).group(1)
- except:
+ except Exception:
errmsg = _("AdsCaptcha challenge pattern not found")
self.plugin.error(errmsg)
raise ValueError(errmsg)