From cd4539121a8db1017fd5910c4ccc6a7749cc3800 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 14 Oct 2024 14:39:26 +0200 Subject: [PATCH] fix imports --- dlt/cli/_dlt.py | 4 ++-- dlt/cli/command_wrappers.py | 3 ++- dlt/cli/deploy_command.py | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlt/cli/_dlt.py b/dlt/cli/_dlt.py index b588dd7fc3..ac7f5c1b5b 100644 --- a/dlt/cli/_dlt.py +++ b/dlt/cli/_dlt.py @@ -173,8 +173,8 @@ def main() -> int: # print exception if available if raiseable_exception: click.secho(str(ex), err=True, fg="red") - - fmt.note(f"Please refer to our docs at '%s' for further assistance." % docs_url) + + fmt.note("Please refer to our docs at '%s' for further assistance." % docs_url) if debug.is_debug_enabled() and raiseable_exception: raise raiseable_exception diff --git a/dlt/cli/command_wrappers.py b/dlt/cli/command_wrappers.py index bcf4ff017c..0e6491688e 100644 --- a/dlt/cli/command_wrappers.py +++ b/dlt/cli/command_wrappers.py @@ -30,11 +30,12 @@ from dlt.cli import deploy_command from dlt.cli.deploy_command import ( PipelineWasNotRun, - DLT_DEPLOY_DOCS_URL, ) except ModuleNotFoundError: pass +DLT_DEPLOY_DOCS_URL = "https://dlthub.com/docs/walkthroughs/deploy-a-pipeline" + @utils.track_command("init", False, "source_name", "destination_type") def init_command_wrapper( diff --git a/dlt/cli/deploy_command.py b/dlt/cli/deploy_command.py index 88c132f5e2..a397abcd4f 100644 --- a/dlt/cli/deploy_command.py +++ b/dlt/cli/deploy_command.py @@ -26,7 +26,6 @@ from dlt.common.destination.reference import Destination REQUIREMENTS_GITHUB_ACTION = "requirements_github_action.txt" -DLT_DEPLOY_DOCS_URL = "https://dlthub.com/docs/walkthroughs/deploy-a-pipeline" DLT_AIRFLOW_GCP_DOCS_URL = ( "https://dlthub.com/docs/walkthroughs/deploy-a-pipeline/deploy-with-airflow-composer" )