summaryrefslogtreecommitdiffstats
path: root/module/plugins/ReCaptcha.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/ReCaptcha.py')
-rw-r--r--module/plugins/ReCaptcha.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/module/plugins/ReCaptcha.py b/module/plugins/ReCaptcha.py
index 23e1064ce..d29530a64 100644
--- a/module/plugins/ReCaptcha.py
+++ b/module/plugins/ReCaptcha.py
@@ -6,9 +6,7 @@ class ReCaptcha():
def challenge(self, id):
js = self.plugin.req.load("http://api.recaptcha.net/challenge", get={"k":id}, cookies=True)
- print js
- challenge = re.search("challenge : '(.*?)',", js).group(1)
- server = re.search("server : '(.*?)',", js).group(1)
+
try:
challenge = re.search("challenge : '(.*?)',", js).group(1)
server = re.search("server : '(.*?)',", js).group(1)