Tentative de faire tomber en marche
This commit is contained in:
parent
fb6ee3da6b
commit
41fa28b2f6
@ -201,8 +201,9 @@ class Bot(object):
|
||||
): # pragma: no cover (this excludes this function from testing)
|
||||
new_msg = self.ircsock.recv(2048) # receive data from the server
|
||||
if not new_msg:
|
||||
print("Empty recv. It seems I’ve lost my mind. I stop to be reborn.")
|
||||
sys.exit(7)
|
||||
print("Empty recv. It seems I’ve lost my mind. I stop to be reborn.", new_msg)
|
||||
#sys.exit(7)
|
||||
time.sleep(1)
|
||||
else:
|
||||
new_msg = new_msg.strip("\n\r".encode()) # removing any unnecessary linebreaks
|
||||
if new_msg != "" and new_msg.find("PING :".encode()) == -1:
|
||||
|
Loading…
Reference in New Issue
Block a user