diff --git a/coretex/cli/modules/intercept.py b/coretex/cli/modules/intercept.py index 8a2dbf63..a8ce4118 100644 --- a/coretex/cli/modules/intercept.py +++ b/coretex/cli/modules/intercept.py @@ -44,5 +44,5 @@ def handleException(self, ctx: click.Context, exc: BaseException) -> None: logFiles = list(logPath.glob("*.log")) latestLogFile = max(logFiles, key = lambda f: f.stat().st_mtime) - errorEcho(f"Exception: {str(exc)}.\nYou can see detailed logs here: {latestLogFile}") + errorEcho(f"An error occured. You can see the detailed logs at {latestLogFile}") logging.getLogger("cli").debug(exc, exc_info = exc) diff --git a/coretex/cli/modules/node.py b/coretex/cli/modules/node.py index d67b9d81..5100da98 100644 --- a/coretex/cli/modules/node.py +++ b/coretex/cli/modules/node.py @@ -183,7 +183,7 @@ def getTagFromImageUrl(image: str) -> str: return "latest" -def shouldUpdate(image: str, ) -> bool: +def shouldUpdate(image: str) -> bool: repository = getRepoFromImageUrl(image) try: imageJson = docker.imageInspect(image, CLISettings.verbose) diff --git a/coretex/cli/modules/utils.py b/coretex/cli/modules/utils.py index ef180b12..55be5462 100644 --- a/coretex/cli/modules/utils.py +++ b/coretex/cli/modules/utils.py @@ -191,10 +191,7 @@ def wrapper(*args: Any, **kwargs: Any) -> Any: if param["name"] == "verbose" and param["flag_value"] == True: CLISettings.verbose = True except: - pass - - # if ctx.params.get('verbose'): - # VERBOSE = True + CLISettings.verbose = False if click.get_current_context().invoked_subcommand in excludeSubcommands: return f(*args, **kwargs)