From 1ac3f691b4c2757bbd9320bab8393045b39246f5 Mon Sep 17 00:00:00 2001 From: Keoni Mahelona Date: Wed, 4 Mar 2020 16:34:38 +1300 Subject: [PATCH] Fixed #968. Needed to send a byte string to telnet not a normal string. --- python_apps/pypo/pypo/pypofetch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_apps/pypo/pypo/pypofetch.py b/python_apps/pypo/pypo/pypofetch.py index c3a9cc8ca..3e7c4638c 100644 --- a/python_apps/pypo/pypo/pypofetch.py +++ b/python_apps/pypo/pypo/pypofetch.py @@ -264,7 +264,7 @@ class PypoFetch(Thread): command = ('vars.stream_metadata_type %s\n' % stream_format).encode('utf-8') self.logger.info(command) tn.write(command) - tn.write('exit\n') + tn.write('exit\n'.encode('ascii')) tn.read_all() except Exception as e: self.logger.exception(e)