first command sometimes fails on TCP
This commit is contained in:
parent
896f01aab0
commit
63a293a5e7
1 changed files with 4 additions and 1 deletions
|
@ -159,7 +159,10 @@ class Pira:
|
||||||
def __init__(self, backend: Backends):
|
def __init__(self, backend: Backends):
|
||||||
self.log = logging.getLogger("Pira")
|
self.log = logging.getLogger("Pira")
|
||||||
self.backend = backend
|
self.backend = backend
|
||||||
|
try:
|
||||||
self.set_variable("ECHO", "0")
|
self.set_variable("ECHO", "0")
|
||||||
|
except CommandError: # this sometimes fails, it's a fact
|
||||||
|
pass
|
||||||
|
|
||||||
def recv_response(self) -> str:
|
def recv_response(self) -> str:
|
||||||
def msg_complete(s: str) -> bool:
|
def msg_complete(s: str) -> bool:
|
||||||
|
|
Loading…
Reference in a new issue