diff options
-rw-r--r-- | module/PyFile.py | 2 | ||||
-rw-r--r-- | module/ThreadManager.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/module/PyFile.py b/module/PyFile.py index 90bbcbc42..02d34e33b 100644 --- a/module/PyFile.py +++ b/module/PyFile.py @@ -118,7 +118,7 @@ class PyFile(object): self.plugin.clean() del self.plugin if hasattr(self.progress, "notify"): - del self.progress.notify + self.progress.notify = None self.m.releaseLink(self.id) diff --git a/module/ThreadManager.py b/module/ThreadManager.py index 30b246106..deefe125e 100644 --- a/module/ThreadManager.py +++ b/module/ThreadManager.py @@ -216,7 +216,7 @@ class ThreadManager: free = [x for x in self.threads if not x.active] - inuse = set([(x.active.pluginname,self.getLimit(x)) for x in self.threads if x.active and x.active.plugin.account]) + inuse = set([(x.active.pluginname,self.getLimit(x)) for x in self.threads if x.active and hasattr(x.active, "plugin") and x.active.plugin.account]) inuse = map(lambda x : (x[0], x[1], len([y for y in self.threads if y.active and y.active.pluginname == x[0]])) ,inuse) onlimit = [x[0] for x in inuse if x[1] > 0 and x[2] >= x[1]] |