Don't continue trying to use None data

This commit is contained in:
jesopo 2018-10-08 23:03:49 +01:00
parent 639b21f145
commit b144d5e37e

View file

@ -167,6 +167,8 @@ class Bot(object):
data = sock.read() data = sock.read()
if data == None: if data == None:
sock.disconnect() sock.disconnect()
continue
for piece in data: for piece in data:
if irc: if irc:
self.log.debug("%s (raw) | %s", self.log.debug("%s (raw) | %s",