fixed sdt issue core gui, fixed sdt message sending for python3

This commit is contained in:
Blake Harnden 2020-02-05 14:40:37 -08:00
parent b55aad9750
commit 6020496b6f
2 changed files with 6 additions and 2 deletions

View file

@ -242,8 +242,8 @@ class Sdt:
if self.sock is None:
return False
try:
logging.info("sdt: %s", cmdstr)
self.sock.sendall(f"{cmdstr}\n")
cmd = f"{cmdstr}\n".encode()
self.sock.sendall(cmd)
return True
except IOError:
logging.exception("SDT connection error")