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,
|
||||
json.JSONDecodeError,
|
||||
anyio.BrokenResourceError,
|
||||
httpx.ConnectTimeout,
|
||||
httpx.ReadError,
|
||||
httpx.ReadTimeout,
|
||||
leap.errors.TransactionPushError
|
||||
) as e:
|
||||
return ret_fail
|
||||
|
|
Loading…
Reference in New Issue