File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
async_substrate_interface Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 39
39
SubstrateRequestException ,
40
40
ExtrinsicNotFound ,
41
41
BlockNotFound ,
42
+ MaxRetriesExceeded ,
42
43
)
43
44
from async_substrate_interface .types import (
44
45
ScaleObj ,
@@ -1910,7 +1911,7 @@ async def _make_rpc_request(
1910
1911
logger .warning (
1911
1912
f"Timed out waiting for RPC requests { attempt } times. Exiting."
1912
1913
)
1913
- raise SubstrateRequestException ("Max retries reached." )
1914
+ raise MaxRetriesExceeded ("Max retries reached." )
1914
1915
else :
1915
1916
self .ws .last_received = time .time ()
1916
1917
await self .ws .connect (force = True )
Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ class SubstrateRequestException(Exception):
8
8
pass
9
9
10
10
11
+ class MaxRetriesExceeded (SubstrateRequestException ):
12
+ pass
13
+
14
+
11
15
class StorageFunctionNotFound (ValueError ):
12
16
pass
13
17
Original file line number Diff line number Diff line change 21
21
ExtrinsicNotFound ,
22
22
SubstrateRequestException ,
23
23
BlockNotFound ,
24
+ MaxRetriesExceeded ,
24
25
)
25
26
from async_substrate_interface .types import (
26
27
SubstrateMixin ,
@@ -1611,7 +1612,7 @@ def _make_rpc_request(
1611
1612
logger .warning (
1612
1613
f"Timed out waiting for RPC requests { attempt } times. Exiting."
1613
1614
)
1614
- raise SubstrateRequestException ("Max retries reached." )
1615
+ raise MaxRetriesExceeded ("Max retries reached." )
1615
1616
else :
1616
1617
return self ._make_rpc_request (
1617
1618
payloads ,
You can’t perform that action at this time.
0 commit comments