From 243bc86b7391bd44ff46cb4e9600a21bb4247492 Mon Sep 17 00:00:00 2001 From: lash Date: Fri, 4 Nov 2022 07:50:47 +0000 Subject: [PATCH] Handle missing filters from arg --- eth_monitor/settings.py | 9 +++++---- requirements.txt | 8 ++++---- setup.cfg | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/eth_monitor/settings.py b/eth_monitor/settings.py index 1da5229..6a8487c 100644 --- a/eth_monitor/settings.py +++ b/eth_monitor/settings.py @@ -317,10 +317,11 @@ def process_out_filter(settings, config): def process_arg_filter(settings, config): store = settings.get('SYNC_STORE') - for k in config.get('ETHMONITOR_FILTER'): - m = importlib.import_module(k) - fltr = m.Filter() - store.register(fltr) + if config.get('ETHMONITOR_FILTER') != None: + for k in config.get('ETHMONITOR_FILTER'): + m = importlib.import_module(k) + fltr = m.Filter() + store.register(fltr) return settings diff --git a/requirements.txt b/requirements.txt index 7bb4152..bb8e82d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ -chainlib-eth~=0.3.0 -chainlib~=0.3.0 -chainsyncer~=0.5.0 +chainlib-eth~=0.4.1 +chainlib~=0.4.0 +chainsyncer~=0.6.0 leveldir~=0.3.0 -eth-cache~=0.1.6 +eth-cache~=0.2.0 confini~=0.6.3 diff --git a/setup.cfg b/setup.cfg index 1aee26f..a5c965f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = eth-monitor -version = 0.5.1 +version = 0.6.0 description = Monitor and cache transactions using match filters author = Louis Holbrook author_email = dev@holbrook.no