From 064efd1a854c6593fb577f4e769ddddbd1332ba8 Mon Sep 17 00:00:00 2001 From: nolash Date: Wed, 8 Sep 2021 17:47:49 +0200 Subject: [PATCH] Correct sqlite filename --- chaind_eth/runnable/resend.py | 2 +- chaind_eth/runnable/send.py | 2 +- chaind_eth/runnable/syncer.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chaind_eth/runnable/resend.py b/chaind_eth/runnable/resend.py index 66db19c..fc8011b 100644 --- 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 index af9ea2e..ff6ce71 100644 --- 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 index 2440cc6..4ed12ff 100644 --- 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))