Fixed #968. Needed to send a byte string to telnet not a normal string.

This commit is contained in:
Keoni Mahelona 2020-03-04 16:34:38 +13:00 committed by Kyle Robbertze
parent a643883d06
commit 1ac3f691b4

View file

@ -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)