From bbf1a05b9754271cb8a2760983bb82e8d77b3cc3 Mon Sep 17 00:00:00 2001 From: Samikshya Chand Date: Tue, 25 Feb 2025 01:13:33 +0530 Subject: [PATCH 1/2] Improve debugging + add PR review template --- .github/{.github => }/pull_request_template.md | 0 src/databricks/sql/auth/retry.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename .github/{.github => }/pull_request_template.md (100%) diff --git a/.github/.github/pull_request_template.md b/.github/pull_request_template.md similarity index 100% rename from .github/.github/pull_request_template.md rename to .github/pull_request_template.md diff --git a/src/databricks/sql/auth/retry.py b/src/databricks/sql/auth/retry.py index 0243d0aa2..1c6644ff6 100755 --- a/src/databricks/sql/auth/retry.py +++ b/src/databricks/sql/auth/retry.py @@ -400,7 +400,7 @@ def should_retry(self, method: str, status_code: int) -> Tuple[bool, str]: and status_code not in self.force_dangerous_codes ): raise UnsafeToRetryError( - "ExecuteStatement command can only be retried for codes 429 and 503" + "ExecuteStatement command can only be retried for codes 429 and 503. Received code: {status_code}" ) # Request failed with a dangerous code, was an ExecuteStatement, but user forced retries for this From 138283400ea601dd419db4f8c26fce44b3b62c22 Mon Sep 17 00:00:00 2001 From: Samikshya Chand Date: Tue, 25 Feb 2025 01:19:51 +0530 Subject: [PATCH 2/2] case sensitivity of PR template --- .github/{pull_request_template.md => PULL_REQUEST_TEMPLATE.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{pull_request_template.md => PULL_REQUEST_TEMPLATE.md} (100%) diff --git a/.github/pull_request_template.md b/.github/PULL_REQUEST_TEMPLATE.md similarity index 100% rename from .github/pull_request_template.md rename to .github/PULL_REQUEST_TEMPLATE.md