diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2019-10-14 06:56:05 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2019-10-14 06:56:05 +0100 |
commit | 663a88df87d0ba8ab4bec598e18ef93aef619d58 (patch) | |
tree | d28c34877bd1f51dc6a9be509e39a6a8f91c04d9 | |
parent | b4f972a4f036257280a2ee0c865c1e5db7ab5de8 (diff) |
fix for badly configured initialise guard
-rw-r--r-- | datamaps/main.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/datamaps/main.py b/datamaps/main.py index fb59b4b..3e835b3 100644 --- a/datamaps/main.py +++ b/datamaps/main.py @@ -69,9 +69,7 @@ def cli(config, verbose): """ click.secho(f"Welcome to datamaps {__version__} © Twenty Four Software", fg="yellow") config.verbose = verbose - if not engine_config.initialise(): - logger.critical("Required directories were not available to complete action. Please run command again now initial config is done.") - sys.exit(1) + engine_config.initialise() @cli.group("import") @@ -147,6 +145,7 @@ def master(master): try: engine_cli.write_master_to_templates(blank, datamap, master) except (FileNotFoundError, RuntimeError) as e: + breakpoint() logger.critical(str(e)) sys.exit(1) be_logger.info("Export complete.") |