mirror of
git://holbrook.no/eth-monitor.git
synced 2024-11-23 04:16:46 +01:00
Handle missing context key arg
This commit is contained in:
parent
39ee38b0dc
commit
3dee984eb9
@ -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
|
||||
|
@ -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'),
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user