summaryrefslogtreecommitdiffstats
path: root/module/ThreadManager.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r--module/ThreadManager.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/module/ThreadManager.py b/module/ThreadManager.py
index 82cb9a449..a8e8b2772 100644
--- a/module/ThreadManager.py
+++ b/module/ThreadManager.py
@@ -218,8 +218,11 @@ class ThreadManager:
job.initPlugin()
except Exception, e:
self.log.critical(str(e))
- if self.core.debug:
- print_exc()
+ print_exc()
+ job.setStatus("failed")
+ job.error = str(e)
+ job.release()
+ return
if job.plugin.__type__ == "hoster":
if free: