From febd36b661a29b3227383c1a608c3fe3d05e67f7 Mon Sep 17 00:00:00 2001 From: justuser-31 Date: Thu, 11 Jun 2026 13:17:59 +0300 Subject: [PATCH] Catch e --- ping.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ping.py b/ping.py index 07532ce..f430720 100644 --- a/ping.py +++ b/ping.py @@ -46,5 +46,10 @@ while True: ttime = 0 except Exception as e: - print(e) + if e == '[Errno 32] Broken pipe': + sleep(60) + ttime = 59 + print("CATCHED") + else: + print(e)