Make sure the account exists before trying to check if it's running.
authorFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Fri, 30 Jan 2009 20:59:34 +0000 (20:59 +0000)
committerFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Fri, 30 Jan 2009 20:59:34 +0000 (20:59 +0000)
accounts.py

index 04ccc20..480129c 100644 (file)
@@ -132,7 +132,7 @@ class Worker:
     def stop(self): self._acct.stop()
 
     def is_running(self): 
-        if self._acct.is_running():
+        if (self._acct != None) and self._acct.is_running():
             status = True
         else:
             status = False