From e3a2c1cb5c9ac9c1b5c7a572ce135aeaa95bfe83 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 13 Oct 2019 20:45:39 +0100 Subject: added unused imports and nice messages --- datamaps/main.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/datamaps/main.py b/datamaps/main.py index 6a7a018..cef19d4 100644 --- a/datamaps/main.py +++ b/datamaps/main.py @@ -18,8 +18,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ import logging +import sys from functools import partial -from zipfile import BadZipFile import click from click import version_option @@ -101,7 +101,7 @@ def report(): def templates(to_master): # TODO move this to cli() engine_config.initialise() - click.secho(f"Hello from datamaps {__version__}", fg="yellow") + click.secho(f"Welcome to datamaps {__version__} © Twenty Four Software", fg="yellow") if to_master: try: engine_cli.import_and_create_master(echo_funcs=output_funcs) @@ -111,8 +111,7 @@ def templates(to_master): except RemoveFileWithNoSheetRequiredByDatamap: logging.info("Import complete.") except RuntimeError as e: - logger.critical(e) - logger.critical("Not completing import process.") + logger.critical("Not completing import process due to runtime error. Please check output for CRITICAL messages to diagnose.") except NoApplicableSheetsInTemplateFiles as e: logger.critical("Not completing import process.") -- cgit v1.2.3