Tentative de faire tomber en marche

This commit is contained in:
François Poulain 2021-12-05 19:24:15 +01:00
parent fb6ee3da6b
commit 41fa28b2f6
1 changed files with 3 additions and 2 deletions

View File

@ -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 Ive lost my mind. I stop to be reborn.")
sys.exit(7)
print("Empty recv. It seems Ive 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: