commit 064efd1a854c6593fb577f4e769ddddbd1332ba8
parent c33535379780a3e28d20a17973da5848aab98aa8
Author: nolash <dev@holbrook.no>
Date: Wed, 8 Sep 2021 17:47:49 +0200
Correct sqlite filename
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/chaind_eth/runnable/resend.py b/chaind_eth/runnable/resend.py
@@ -77,7 +77,7 @@ if m != None:
logg.info('using mode {}'.format(mode.value))
if config.get('_SOURCE') == None:
- sys.stderr.write('source data missing')
+ sys.stderr.write('source data missing\n')
sys.exit(1)
diff --git a/chaind_eth/runnable/send.py b/chaind_eth/runnable/send.py
@@ -79,7 +79,7 @@ if m != None:
logg.info('using mode {}'.format(mode.value))
if config.get('_SOURCE') == None:
- sys.stderr.write('source data missing')
+ sys.stderr.write('source data missing\n')
sys.exit(1)
diff --git a/chaind_eth/runnable/syncer.py b/chaind_eth/runnable/syncer.py
@@ -64,7 +64,7 @@ if not config.get('SESSION_SOCKET_PATH'):
config.add(socket_path, 'SESSION_SOCKET_PATH', True)
if config.get('DATABASE_ENGINE') == 'sqlite':
- config.add(os.path.join(config.get('SESSION_DATA_DIR'), config.get('DATABASE_NAME')), 'DATABASE_NAME', exists_ok=True)
+ config.add(os.path.join(config.get('SESSION_DATA_DIR'), config.get('DATABASE_NAME') + '.sqlite'), 'DATABASE_NAME', exists_ok=True)
config.censor('PASSWORD', 'DATABASE')
logg.debug('config loaded:\n{}'.format(config))