We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 006ec44 commit 719f539Copy full SHA for 719f539
lib/jnpr/junos/transport/tty_netconf.py
@@ -68,7 +68,9 @@ def open(self, at_shell):
68
raise RuntimeError("Error: netconf not responding")
69
70
self.hello = self._receive()
71
- self._session_id, _ = HelloHandler.parse(self.hello.decode("utf-8"))
+ self._session_id, _ = HelloHandler.parse(
72
+ self.hello.decode("utf-8") if isinstance(self.hello, bytes) else self.hello
73
+ )
74
75
def close(self, force=False):
76
"""issue the XML API to close the session"""
0 commit comments