mirror of https://github.com/skygpu/skynet.git
Add new leap error
parent
67cff51085
commit
48a0d0db79
|
@ -9,6 +9,7 @@ from pathlib import Path
|
||||||
from functools import partial
|
from functools import partial
|
||||||
|
|
||||||
import trio
|
import trio
|
||||||
|
import leap
|
||||||
import anyio
|
import anyio
|
||||||
import httpx
|
import httpx
|
||||||
|
|
||||||
|
@ -33,7 +34,8 @@ async def failable(fn: partial, ret_fail=None):
|
||||||
OSError,
|
OSError,
|
||||||
json.JSONDecodeError,
|
json.JSONDecodeError,
|
||||||
anyio.BrokenResourceError,
|
anyio.BrokenResourceError,
|
||||||
httpx.ReadError
|
httpx.ReadError,
|
||||||
|
leap.errors.TransactionPushError
|
||||||
) as e:
|
) as e:
|
||||||
return ret_fail
|
return ret_fail
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue