git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7d22707
)
Make sure the account exists before trying to check if it's running.
author
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Fri, 30 Jan 2009 20:59:34 +0000
(20:59 +0000)
committer
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Fri, 30 Jan 2009 20:59:34 +0000
(20:59 +0000)
accounts.py
patch
|
blob
|
history
diff --git
a/accounts.py
b/accounts.py
index
04ccc20
..
480129c
100644
(file)
--- 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