From 1fe2e3353a05543c7920022044caf556d94670d9 Mon Sep 17 00:00:00 2001 From: dmc Date: Tue, 13 Sep 2022 10:39:00 +0200 Subject: [PATCH] frappy() command returns bare '' when disabled --- devices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices.py b/devices.py index d7d7ec5..55c02f5 100644 --- a/devices.py +++ b/devices.py @@ -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