From 63a293a5e77840e8a2627f55ac0c861e9d3bf46e Mon Sep 17 00:00:00 2001 From: boyska Date: Mon, 25 Dec 2023 15:29:45 +0100 Subject: [PATCH] first command sometimes fails on TCP --- sergio.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sergio.py b/sergio.py index 9b1e777..04de99a 100755 --- a/sergio.py +++ b/sergio.py @@ -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: