From b4f972a4f036257280a2ee0c865c1e5db7ab5de8 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 14 Oct 2019 06:36:49 +0100 Subject: now handles missing blank template --- datamaps/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'datamaps/main.py') diff --git a/datamaps/main.py b/datamaps/main.py index 6111ddb..fb59b4b 100644 --- a/datamaps/main.py +++ b/datamaps/main.py @@ -147,7 +147,8 @@ def master(master): try: engine_cli.write_master_to_templates(blank, datamap, master) except (FileNotFoundError, RuntimeError) as e: - click.secho(str(e), fg="red") + logger.critical(str(e)) + sys.exit(1) be_logger.info("Export complete.") -- cgit v1.2.3