From cca1c563a0acc1c5dbd0552b4d610f1325f53559 Mon Sep 17 00:00:00 2001 From: mkaay Date: Mon, 31 Jan 2011 19:06:22 +0100 Subject: added captchatrader.com support, fixed lof.cc --- pyLoadCore.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pyLoadCore.py') 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() -- cgit v1.2.3