summaryrefslogtreecommitdiffstats
path: root/module/CaptchaManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-01-23 23:15:37 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-01-23 23:15:37 +0100
commitd66bfc3f0754d2b563d30ac3e6e7b55f2fdefdf7 (patch)
treeddbd7d825830e41b6403817701d29777189b275a /module/CaptchaManager.py
parentFileSonic Premium (diff)
downloadpyload-d66bfc3f0754d2b563d30ac3e6e7b55f2fdefdf7.tar.xz
closed memory leak in debug mode, closed #217
Diffstat (limited to 'module/CaptchaManager.py')
-rw-r--r--module/CaptchaManager.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/module/CaptchaManager.py b/module/CaptchaManager.py
index d6a8fd077..d9e3748d7 100644
--- a/module/CaptchaManager.py
+++ b/module/CaptchaManager.py
@@ -83,7 +83,12 @@ class CaptchaTask():
self.lock.release()
def getResult(self):
- return self.result
+ try:
+ res = self.result.encode("utf8", "replace")
+ except:
+ res = self.result
+
+ return res
def getID(self):
return self.id