first command sometimes fails on TCP

This commit is contained in:
boyska 2023-12-25 15:29:45 +01:00
parent 896f01aab0
commit 63a293a5e7

View file

@ -159,7 +159,10 @@ class Pira:
def __init__(self, backend: Backends):
self.log = logging.getLogger("Pira")
self.backend = backend
self.set_variable("ECHO", "0")
try:
self.set_variable("ECHO", "0")
except CommandError: # this sometimes fails, it's a fact
pass
def recv_response(self) -> str:
def msg_complete(s: str) -> bool: