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