BufferReader won't return bytes

This commit is contained in:
Jakob Ketterl 2021-07-25 17:36:32 +02:00
parent 6db80ec51a
commit 223c2d1709

View File

@ -106,7 +106,7 @@ class Chain:
data = self.reader.read()
except ValueError:
pass
if data is None or (isinstance(data, bytes) and len(data) == 0):
if data is None:
run = False
else:
write(data)