From 93d09a148303f949f83a34d655f85eef40192322 Mon Sep 17 00:00:00 2001 From: Upstream Data Date: Fri, 24 Nov 2023 23:28:16 -0700 Subject: [PATCH] bug: handle unhandled error in pings. --- pyasic/network/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyasic/network/__init__.py b/pyasic/network/__init__.py index 4cbe4747..d29ae8b9 100644 --- a/pyasic/network/__init__.py +++ b/pyasic/network/__init__.py @@ -188,6 +188,8 @@ async def ping_and_get_miner( except asyncio.exceptions.TimeoutError: # ping failed if we time out continue + except OSError: + continue except Exception as e: logging.warning(f"{str(ip)}: Unhandled ping exception: {e}") return