From 840d1047ef5f77168aae48bc4412523c3a38bd39 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 6 Jun 2011 18:55:18 +0200 Subject: fixes? --- module/ThreadManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/ThreadManager.py') 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]] -- cgit v1.2.3