mirror of https://github.com/skygpu/skynet.git
Merge pull request #46 from skygpu/network-error-patch
add httpx.ConnectTimeout and httpx.ReadTimeout to netowork failablestelos_testnet
commit
417851c13e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue