Merge pull request #46 from skygpu/network-error-patch

add httpx.ConnectTimeout and httpx.ReadTimeout to netowork failables
telos_testnet
Guillermo Rodriguez 2025-01-31 12:58:43 -03:00 committed by GitHub
commit 417851c13e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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,
json.JSONDecodeError,
anyio.BrokenResourceError,
httpx.ConnectTimeout,
httpx.ReadError,
httpx.ReadTimeout,
leap.errors.TransactionPushError
) as e:
return ret_fail