File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -271,8 +271,9 @@ def get_logs(
271
271
if p_bar is not None :
272
272
p_bar .update (num_blocks )
273
273
return events
274
- except Exception :
274
+ except Exception as e :
275
275
# split the filter range and try again
276
+ print (f"eth_getLogs between block { from_block } and { to_block } returned { repr (e )} , splitting and retrying" )
276
277
mid_block = (from_block + to_block ) // 2
277
278
left_filter = {** filter_params , "toBlock" : mid_block }
278
279
right_filter = {** filter_params , "fromBlock" : mid_block + 1 }
Original file line number Diff line number Diff line change 1
1
from setuptools import setup , find_packages
2
2
3
- VERSION = '0.1.54 '
3
+ VERSION = '0.1.55 '
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