mirror of https://github.com/skygpu/skynet.git
add httpx.ConnectTimeout and httpx.ReadTimeout to netowork failables
parent
2e50b1a542
commit
bce2f1c8e4
|
@ -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