diff --git a/odoo_openupgrade_wizard/cli/cli_init.py b/odoo_openupgrade_wizard/cli/cli_init.py index c630b72..382aba8 100644 --- a/odoo_openupgrade_wizard/cli/cli_init.py +++ b/odoo_openupgrade_wizard/cli/cli_init.py @@ -51,7 +51,6 @@ def init( """Initialize OpenUpgrade Wizard Environment based on the initial and the final version of Odoo you want to migrate. """ - print(0 / 0) # Handle arguments if extra_repository_list: diff --git a/tests/__init__.py b/tests/__init__.py index d2616bb..46945f8 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -40,21 +40,21 @@ def cli_runner_invoke(cmd): _logger.error("output: %s" % result.output) assert result.exit_code == 0 except Exception as exception: - - log_files = [ - Path("log") / Path(f) - for f in os.listdir(Path("log")) - if f[-4:] == ".log" - ] - for log_file in log_files: - print("============================") - print(log_file) - print("============================") - _f = open(log_file) - print(_f.read()) - _f.close() - print("============================") - raise exception + if Path("log").exists(): + log_files = [ + Path("log") / Path(f) + for f in os.listdir(Path("log")) + if f[-4:] == ".log" + ] + for log_file in log_files: + print("============================") + print(log_file) + print("============================") + _f = open(log_file) + print(_f.read()) + _f.close() + print("============================") + raise exception def build_ctx_from_config_file() -> dict: