Don't continue trying to use None data
This commit is contained in:
parent
639b21f145
commit
b144d5e37e
1 changed files with 2 additions and 0 deletions
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue