commit 3dee984eb9933d04de970bce3ed3180ec0a1f7d5
parent 39ee38b0dc9f36467c09397dc33852c37de2ad71
Author: lash <dev@holbrook.no>
Date: Mon, 7 Aug 2023 12:48:23 +0100
Handle missing context key arg
Diffstat:
5 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
@@ -1,3 +1,5 @@
+- 0.8.2
+ * Handle undefined content-key argument
- 0.8.1
* Implement syncer context
* Add key-value parameter for cli, environment, config to pass to syncer context
diff --git a/eth_monitor/runnable/sync.py b/eth_monitor/runnable/sync.py
@@ -96,7 +96,6 @@ logg.debug('loaded settings:\n{}'.format(settings))
def main():
logg.info('session is {}'.format(settings.get('SESSION_ID')))
-
drv = ChainInterfaceDriver(
settings.get('SYNC_STORE'),
settings.get('SYNCER_INTERFACE'),
diff --git a/eth_monitor/settings.py b/eth_monitor/settings.py
@@ -382,9 +382,11 @@ def process_cache(settings, config):
def process_user_context(settings, config):
ctx_usr = {}
- for kv in config.get('ETHMONITOR_CONTEXT_KEY'):
- (k, v) = kv.split('=', 1)
- ctx_usr[k] = v
+ ks = config.get('ETHMONITOR_CONTEXT_KEY')
+ if ks != None:
+ for kv in ks:
+ (k, v) = kv.split('=', 1)
+ ctx_usr[k] = v
ctx = {
'driver': 'eth-monitor',
'usr': ctx_usr,
diff --git a/requirements.txt b/requirements.txt
@@ -1,6 +1,6 @@
chainlib-eth~=0.5.0
chainlib~=0.5.0
-chainsyncer~=0.8.1
+chainsyncer~=0.8.2
leveldir~=0.3.0
eth-cache~=0.3.0
confini~=0.6.3
diff --git a/setup.cfg b/setup.cfg
@@ -1,6 +1,6 @@
[metadata]
name = eth-monitor
-version = 0.8.1
+version = 0.8.2
description = Monitor and cache transactions using match filters
author = Louis Holbrook
author_email = dev@holbrook.no