summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/captcha/AdYouLike.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/captcha/AdYouLike.py')
-rw-r--r--pyload/plugins/captcha/AdYouLike.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/plugins/captcha/AdYouLike.py b/pyload/plugins/captcha/AdYouLike.py
index 9c74e9348..be688e65d 100644
--- a/pyload/plugins/captcha/AdYouLike.py
+++ b/pyload/plugins/captcha/AdYouLike.py
@@ -61,7 +61,7 @@ class AdYouLike(Captcha):
'callback': callback})
try:
challenge = json_loads(re.search(callback + r'\s*\((.+?)\)', html).group(1))
- except:
+ except Exception:
errmsg = _("AdYouLike challenge pattern not found")
self.plugin.error(errmsg)
raise ValueError(errmsg)
@@ -91,7 +91,7 @@ class AdYouLike(Captcha):
try:
instructions_visual = challenge['translations'][server['all']['lang']]['instructions_visual']
result = re.search(u'«(.+?)»', instructions_visual).group(1).strip()
- except:
+ except Exception:
errmsg = _("AdYouLike result not found")
self.plugin.error(errmsg)
raise ValueError(errmsg)