aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2019-10-14 06:36:49 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2019-10-14 06:36:49 +0100
commitb4f972a4f036257280a2ee0c865c1e5db7ab5de8 (patch)
tree88c87e02e8b7674b2db37d8445bf1a7af9a77e0c
parentf2071abb1eeb27fcbb94406a614374a09b0a6f19 (diff)
now handles missing blank template
-rw-r--r--datamaps/main.py3
1 files changed, 2 insertions, 1 deletions
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.")