mirror of
https://github.com/nikdoof/python-ts3.git
synced 2025-12-16 00:32:15 +00:00
response.startswith should accept bytes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user