From: Faiyaz Ahmed Date: Fri, 30 Jan 2009 20:59:34 +0000 (+0000) Subject: Make sure the account exists before trying to check if it's running. X-Git-Tag: NodeManager-1.7-41~3 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=1ede9b6e7722605dd5e3cbde6a1080696477d78d;p=nodemanager.git Make sure the account exists before trying to check if it's running. --- diff --git a/accounts.py b/accounts.py index 04ccc20..480129c 100644 --- a/accounts.py +++ b/accounts.py @@ -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