summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2011-01-31 19:06:22 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2011-01-31 19:06:22 +0100
commitcca1c563a0acc1c5dbd0552b4d610f1325f53559 (patch)
tree7fc238d5f7d724ef21a0d99ed89f567e1d1b6def /pyLoadCore.py
parentAdded tag v0.4.4 for changeset e328358b2009 (diff)
downloadpyload-cca1c563a0acc1c5dbd0552b4d610f1325f53559.tar.xz
added captchatrader.com support, fixed lof.cc
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index d9bbc4040..f207bf2e5 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -776,7 +776,9 @@ class ServerMethods():
def get_task_status(self, tid):
self.core.lastClientConnected = time.time()
- return self.core.captchaManager.getTaskFromID(tid).getStatus()
+ t = self.core.captchaManager.getTaskFromID(tid)
+ if t:
+ return t.getStatus()
def set_captcha_result(self, tid, result):
self.core.lastClientConnected = time.time()