diff --git a/connpy/_version.py b/connpy/_version.py index 0112fa2..a34b9a9 100644 --- a/connpy/_version.py +++ b/connpy/_version.py @@ -1,2 +1,2 @@ -__version__ = "4.1.0b2" +__version__ = "4.1.0b3" diff --git a/connpy/core.py b/connpy/core.py index f958cb7..9f2ce96 100755 --- a/connpy/core.py +++ b/connpy/core.py @@ -610,7 +610,7 @@ class node: endloop = True break else: - after = "Connection timeout" if results == 12 else child.after.decode() + after = "Connection timeout" if results_value == pexpect.TIMEOUT else child.after.decode() return f"Connection failed code: {results}\n{child.before.decode().lstrip()}{after}{child.readline().decode()}".rstrip() elif results in eof_indices[self.protocol]: