summaryrefslogtreecommitdiffstats
path: root/module/plugins/Plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r--module/plugins/Plugin.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py
index a12dfa686..27e54cdc2 100644
--- a/module/plugins/Plugin.py
+++ b/module/plugins/Plugin.py
@@ -235,7 +235,9 @@ class Plugin(object):
task.removeTask()
#temp.unlink(temp.name)
self.fail(_("No Client connected for captcha decrypting, or pil and tesseract not installed"))
- if self.pyfile.abort: raise Abort
+ if self.pyfile.abort:
+ task.removeTask()
+ raise Abort
sleep(1)
result = task.getResult()
task.removeTask()