frappy() command returns bare '' when disabled
This commit is contained in:
@ -313,7 +313,7 @@ class FrappyNode(SecNodeDevice, Moveable):
|
||||
def get_info(self):
|
||||
result = self.doRead() or ''
|
||||
code, text = self.status()
|
||||
if code == status.OK:
|
||||
if code == status.OK or result == '':
|
||||
return result
|
||||
if (code, text) == (status.ERROR, 'reconnecting'):
|
||||
return '%s (frappy not running)' % result
|
||||
|
Reference in New Issue
Block a user