summaryrefslogtreecommitdiffstats
path: root/module/plugins/ReCaptcha.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-08-13 13:46:34 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-08-13 13:46:34 +0200
commit694b1826b7118bff22444a1eb9bfd8b681ef0200 (patch)
tree35b7c93d07286cb2a6b72fca582ffc2e05ad214d /module/plugins/ReCaptcha.py
parentsome fixes, working irc interface (diff)
downloadpyload-694b1826b7118bff22444a1eb9bfd8b681ef0200.tar.xz
unrar fix, removed recaptcha debug
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)