mirror of
https://github.com/nikdoof/python-ts3.git
synced 2025-12-17 03:49:25 +00:00
response.startswith should accept bytes
This commit is contained in:
@@ -131,7 +131,7 @@ class TS3Proto():
|
|||||||
data = ''
|
data = ''
|
||||||
response = self._telnet.read_until(b"\n\r", self._timeout)
|
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
|
# what we just got was extra data
|
||||||
data = response
|
data = response
|
||||||
response = self._telnet.read_until(b"\n\r", self._timeout)
|
response = self._telnet.read_until(b"\n\r", self._timeout)
|
||||||
|
|||||||
Reference in New Issue
Block a user