From bcc61603a7fb56606351af040a36723319e1e2a0 Mon Sep 17 00:00:00 2001 From: Justuser Date: Wed, 25 Jan 2023 14:32:21 +0000 Subject: [PATCH] Revert "Remove except block and put replace ping" This reverts commit bd540ff8b73561368a779c345dd4f386181de691 --- ping.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ping.py b/ping.py index 62a1766..94c1fd5 100644 --- a/ping.py +++ b/ping.py @@ -39,6 +39,10 @@ while True: ttime = 0 except Exception as e: - ping = PINGClient('play.dmcraft.online') - print(e) + if e == '[Errno 32] Broken pipe': + sleep(60) + ttime = 59 + print("CATCHED") + else: + print(e)