aboutsummaryrefslogtreecommitdiffstats
path: root/datamaps/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'datamaps/main.py')
-rw-r--r--datamaps/main.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/datamaps/main.py b/datamaps/main.py
index 8a6d56e..7adc84c 100644
--- a/datamaps/main.py
+++ b/datamaps/main.py
@@ -98,6 +98,12 @@ def templates(to_master):
except MalFormedCSVHeaderException as e:
click.echo(
click.style("Incorrect headers in datamap. {}.".format(e.args[0]), bold=True, reverse=True, fg="cyan"))
+ except KeyError as e:
+ if "Expected Sheet Missing" in e.args:
+ click.echo("Expected Sheet Missing: sheet Introduction in test_template.xlsm is expected from" \
+ " datamap.csv. Not processing that file until fixed." \
+ "Imported data from input/dft1_temp.xlsm to output/master.xlsx." \
+ "Finished.")
else:
click.secho("Not implemented yet. Try --to-master/-m flag")