File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
nautilus_trader/adapters/dydx/http Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 22
22
23
23
from nautilus_trader .adapters .dydx .common .constants import DYDX_RETRY_ERRORS_GRPC
24
24
from nautilus_trader .adapters .dydx .grpc .errors import DYDXGRPCError
25
+ from nautilus_trader .core .nautilus_pyo3 import HttpError
25
26
from nautilus_trader .core .nautilus_pyo3 import HttpTimeoutError
26
27
from nautilus_trader .core .nautilus_pyo3 import WebSocketClientError
27
28
@@ -59,7 +60,10 @@ def should_retry(error: BaseException) -> bool:
59
60
if isinstance (error , DYDXGRPCError ):
60
61
return error .code in DYDX_RETRY_ERRORS_GRPC
61
62
62
- if isinstance (error , AioRpcError | DYDXError | HttpTimeoutError | WebSocketClientError ):
63
+ if isinstance (
64
+ error ,
65
+ AioRpcError | DYDXError | HttpError | HttpTimeoutError | WebSocketClientError ,
66
+ ):
63
67
return True
64
68
65
69
return False
You can’t perform that action at this time.
0 commit comments