add httpx.ConnectTimeout and httpx.ReadTimeout to netowork failables

network-error-patch
Konstantine Tsafatinos 2025-01-31 08:25:02 -05:00
parent 2e50b1a542
commit bce2f1c8e4
1 changed files with 2 additions and 0 deletions

2
skynet/dgpu/network.py 100644 → 100755
View File

@ -34,7 +34,9 @@ async def failable(fn: partial, ret_fail=None):
OSError, OSError,
json.JSONDecodeError, json.JSONDecodeError,
anyio.BrokenResourceError, anyio.BrokenResourceError,
httpx.ConnectTimeout,
httpx.ReadError, httpx.ReadError,
httpx.ReadTimeout,
leap.errors.TransactionPushError leap.errors.TransactionPushError
) as e: ) as e:
return ret_fail return ret_fail