linted code of extron smp adapter
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user