aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2019-10-13 20:17:34 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2019-10-13 20:17:34 +0100
commite929fa4d638c0f1eb0f660558c62aae2bbbf92e7 (patch)
tree977f80c7d59906a8b3699d17b17913d95b269be0
parent5f14737bf6a7e415ec70388d547ff526f285e96d (diff)
small fix to improve logger output
-rw-r--r--datamaps/main.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/datamaps/main.py b/datamaps/main.py
index a36b468..6a7a018 100644
--- a/datamaps/main.py
+++ b/datamaps/main.py
@@ -28,6 +28,7 @@ from datamaps import __version__
from engine.adapters import cli as engine_cli
from engine.config import Config as engine_config
from engine.exceptions import (MalFormedCSVHeaderException,
+ NoApplicableSheetsInTemplateFiles,
RemoveFileWithNoSheetRequiredByDatamap)
logging.basicConfig(level=logging.INFO, format="%(asctime)s: %(levelname)s - %(message)s", datefmt='%d-%b-%y %H:%M:%S')
@@ -112,6 +113,8 @@ def templates(to_master):
except RuntimeError as e:
logger.critical(e)
logger.critical("Not completing import process.")
+ except NoApplicableSheetsInTemplateFiles as e:
+ logger.critical("Not completing import process.")
else:
click.secho("Not implemented yet. Try --to-master/-m flag")