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)