From 1390e27dec5852efdcf1b2fbd1bc9c7177aeb1a3 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Fri, 17 Dec 2021 16:05:57 -0600 Subject: [PATCH] scrub message of secrets (#4507) * scrub message of secrets * update changelog * use new scrubbing and scrub more places using git * fixed small miss of string conv and missing raise * fix bug with cloning error * resolving message issues * better, more specific scrubbing automatic commit by git-black, original commits: 7c46b784efb0d6cbe033df6a50f29904dcef994d --- core/dbt/clients/git.py | 7 +++++-- core/dbt/exceptions.py | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/core/dbt/clients/git.py b/core/dbt/clients/git.py index ffaafa1a1a6..40e25c9881d 100644 --- a/core/dbt/clients/git.py +++ b/core/dbt/clients/git.py @@ -13,8 +13,11 @@ GitProgressCheckedOutAt, ) from dbt.exceptions import ( - CommandResultError, RuntimeException, bad_package_spec, raise_git_cloning_error, - raise_git_cloning_problem + CommandResultError, + RuntimeException, + bad_package_spec, + raise_git_cloning_error, + raise_git_cloning_problem, ) from packaging import version diff --git a/core/dbt/exceptions.py b/core/dbt/exceptions.py index 9158939be1c..acab1d41059 100644 --- a/core/dbt/exceptions.py +++ b/core/dbt/exceptions.py @@ -470,10 +470,10 @@ def raise_git_cloning_error(error: CommandResultError) -> NoReturn: def raise_git_cloning_problem(repo) -> NoReturn: repo = scrub_secrets(repo, env_secrets()) - msg = '''\ + msg = """\ Something went wrong while cloning {} Check the debug logs for more information - ''' + """ raise RuntimeException(msg.format(repo))