bug: handle unhandled error in pings.
This commit is contained in:
@@ -188,6 +188,8 @@ async def ping_and_get_miner(
|
|||||||
except asyncio.exceptions.TimeoutError:
|
except asyncio.exceptions.TimeoutError:
|
||||||
# ping failed if we time out
|
# ping failed if we time out
|
||||||
continue
|
continue
|
||||||
|
except OSError:
|
||||||
|
continue
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.warning(f"{str(ip)}: Unhandled ping exception: {e}")
|
logging.warning(f"{str(ip)}: Unhandled ping exception: {e}")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user