From 1ede9b6e7722605dd5e3cbde6a1080696477d78d Mon Sep 17 00:00:00 2001 From: Faiyaz Ahmed Date: Fri, 30 Jan 2009 20:59:34 +0000 Subject: [PATCH] Make sure the account exists before trying to check if it's running. --- accounts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.0