From 0c90d883ce6eeba6359da38a3c3b9bbb11ad244f Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sat, 21 Mar 2026 21:13:25 +0100 Subject: [PATCH] print errors --- xrd.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xrd.py b/xrd.py index c857043..c568171 100644 --- a/xrd.py +++ b/xrd.py @@ -333,14 +333,18 @@ def run_server(): resp = process_command(tef, data, state, conn) if resp: conn.sendall(resp) except Exception as e: - try: conn.sendall(b"!" + str(e).encode() + b"\n") + try: + print(e) + conn.sendall(b"!" + str(e).encode() + b"\n") except Exception: pass except ConnectionResetError: break except ConnectionAbortedError: break except BlockingIOError: try: run_periodic(tef, conn, state) except Exception as e: - try: conn.sendall(b"!" + str(e).encode() + b"\n") + try: + print(e) + conn.sendall(b"!" + str(e).encode() + b"\n") except Exception: pass time.sleep(0.03)