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()
|
||||
if data == None:
|
||||
sock.disconnect()
|
||||
continue
|
||||
|
||||
for piece in data:
|
||||
if irc:
|
||||
self.log.debug("%s (raw) | %s",
|
||||
|
|
Loading…
Reference in a new issue