response.startswith should accept bytes

This commit is contained in:
Przemysław Czarnota
2015-08-02 22:03:56 +02:00
parent 9a880bd3be
commit a86d4e11a9

View File

@@ -131,7 +131,7 @@ class TS3Proto():
data = ''
response = self._telnet.read_until(b"\n\r", self._timeout)
if not response.startswith("error"):
if not response.startswith(b"error"):
# what we just got was extra data
data = response
response = self._telnet.read_until(b"\n\r", self._timeout)