frappy() command returns bare '' when disabled

This commit is contained in:
2022-09-13 10:39:00 +02:00
parent 7b076458bc
commit 1fe2e3353a

View File

@ -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