diff options
author | Florian Bruhin <git@the-compiler.org> | 2017-12-06 07:41:41 +0100 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2017-12-06 07:41:41 +0100 |
commit | 549a3a8f70686b1eb2e3a583c477482c94add605 (patch) | |
tree | 2be63e63e4be3a78c9293cc83bcad74c3f563445 /scripts/hist_importer.py | |
parent | 6ea250dc8363bc70312fe784fd73ecc97654435d (diff) | |
download | qutebrowser-549a3a8f70686b1eb2e3a583c477482c94add605.tar.gz qutebrowser-549a3a8f70686b1eb2e3a583c477482c94add605.zip |
Improve hist_importer messages
Diffstat (limited to 'scripts/hist_importer.py')
-rwxr-xr-x | scripts/hist_importer.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/hist_importer.py b/scripts/hist_importer.py index 36f151e6f..ba3369f5c 100755 --- a/scripts/hist_importer.py +++ b/scripts/hist_importer.py @@ -66,9 +66,7 @@ def open_db(data_base): conn = sqlite3.connect(data_base) return conn else: - raise sys.exit('DataBaseNotFound: There was some error trying to to' - ' connect with the [{}] database. Verify if the' - ' given file path is correct.'.format(data_base)) + sys.exit('The file {} does not exist.'.format(data_base)) def extract(source, query): @@ -89,8 +87,8 @@ def extract(source, query): conn.close() return history except sqlite3.OperationalError as op_e: - print('\nCould not perform queries into the source database: {}' - .format(op_e)) + sys.exit('Could not perform queries on the source database: ' + '{}'.format(op_e)) def clean(history): |