From bbcaa88de49a07da736026b4e8bbb6ff31cafb98 Mon Sep 17 00:00:00 2001 From: swee Date: Mon, 16 Dec 2024 14:22:14 -0800 Subject: [PATCH] Update server.py --- server.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/server.py b/server.py index 344282c..4795372 100644 --- a/server.py +++ b/server.py @@ -509,15 +509,18 @@ def session(connection, client): if pending in users: for j in users: if j != pending and not j in done: - nickname_list[j].sendall(bytes(f":{pending}!~{username}@{hostname} QUIT :{cause}\r\n","UTF-8")) - done.append(j) + try: + nickname_list[j].sendall(bytes(f":{pending}!~{username}@{hostname} QUIT :{cause}\r\n","UTF-8")) + done.append(j) + except: + print(traceback.format_exc()) # Remove the quitting user from the channel. try: channels_list[i].remove(pending) except: print(traceback.format_exc()) except: - pass + print(traceback.format_exc()) cleanup_manual() def cleanup(): while True: