[WIP] fix disconencted info

This commit is contained in:
2023-10-17 13:55:52 +02:00
parent b97eff8afb
commit 9e489d8cfd

View File

@ -646,7 +646,7 @@ class FrappyNode(SecNodeDevice, Moveable):
def get_info(self):
result = self.doRead() or ''
code, text = self.status()
if not result and self.target:
if not result and self.target and self._secnode:
return '<disconnected>'
if code == status.OK or result == '':
return result