File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,8 @@ def get_logs(
195
195
return results
196
196
return results + self .get_logs ({** filter_params , "fromBlock" : till_block + 1 }, ** kwargs )
197
197
except Exception as e :
198
- print (f"Getting logs from SubSquid threw exception { repr (e )} , falling back to RPC" )
198
+ if not isinstance (e , ValueError ) or "Subsquid only has indexed till block " not in str (e ):
199
+ print (f"Getting logs from SubSquid threw exception { repr (e )} , falling back to RPC" )
199
200
200
201
last_stable_block = self .w3 .latest_seen_block - self .w3 .unstable_blocks
201
202
if get_logs_by_block_hash or to_block > last_stable_block :
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def get_filter(
53
53
latest_block = get_latest_subsquid_block (gateway_url )
54
54
55
55
if from_block > latest_block :
56
- raise ValueError (f"Subsquid has only indexed till block { latest_block } " )
56
+ raise ValueError (f"Subsquid only has indexed till block { latest_block } " )
57
57
58
58
if to_block > latest_block :
59
59
if partial_allowed :
Original file line number Diff line number Diff line change 1
1
from setuptools import setup , find_packages
2
2
3
- VERSION = '0.1.41 '
3
+ VERSION = '0.1.42 '
4
4
DESCRIPTION = 'IceCreamSwap Web3.py wrapper'
5
5
LONG_DESCRIPTION = 'IceCreamSwap Web3.py wrapper with automatic retries, multicall and other advanced functionality'
6
6
You can’t perform that action at this time.
0 commit comments