diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2019-10-13 20:45:39 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2019-10-13 20:45:39 +0100 |
commit | e3a2c1cb5c9ac9c1b5c7a572ce135aeaa95bfe83 (patch) | |
tree | d197a46f69195daf25d3423f455df14054511b4d | |
parent | e929fa4d638c0f1eb0f660558c62aae2bbbf92e7 (diff) |
added unused imports and nice messages
-rw-r--r-- | datamaps/main.py | 7 |
1 files 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.") |