From e2ea87ac63e9595c1e44afaf7cf6a3bc9c13e7d0 Mon Sep 17 00:00:00 2001 From: swee Date: Sat, 25 Jan 2025 21:33:22 -0800 Subject: [PATCH] Update server.py --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 23ea55f..60f03ed 100644 --- a/server.py +++ b/server.py @@ -32,8 +32,8 @@ def getident(hostt:str, clientport:int, ssll:bool): identsender.settimeout(5) try: identsender.connect((hostt, 113)) - except: - return {"success": False, "response": "Could not connect to your ident server."} + except Exception as ex: + return {"success": False, "response": f"Could not connect to your ident server: {ex}"} serverport = "6697" if ssll else "6667" try: identsender.send(bytes(f"{clientport} , {serverport}\r\n", "UTF-8"))