linted code of extron smp adapter

This commit is contained in:
2023-10-25 15:05:47 +02:00
parent 6936d8d02c
commit b60d89ce0a
2 changed files with 375 additions and 161 deletions

View File

@@ -76,7 +76,7 @@ class TelnetAdapter(ABC):
def _run_cmd(self, cmd, timeout=1, auto_connect=True):
if self.tn is None and not auto_connect:
raise Exception("Not connected!")
raise LrcException("Not connected!")
elif self.tn is None:
self._login()
self.tn.write(cmd)