Skip to content

Commit

Permalink
code quality checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Dec 11, 2024
1 parent 0d4994c commit a17b060
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion dbt/adapters/bigquery/retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ def __init__(self, retries: int) -> None:
self._retries: int = retries
self._error_count = 0


def __call__(self, error: Exception) -> bool:
# exit immediately if the user does not want retries
if self._retries == 0:
Expand Down
4 changes: 3 additions & 1 deletion tests/unit/test_bigquery_connection_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ def test_is_retryable(self):
service_unavailable_error = exceptions.ServiceUnavailable("service is unavailable")

self.assertTrue(_is_retryable(internal_server_error))
self.assertFalse(_is_retryable(bad_request_error)) # this was removed after initially being included
self.assertFalse(
_is_retryable(bad_request_error)
) # this was removed after initially being included
self.assertTrue(_is_retryable(connection_error))
self.assertFalse(_is_retryable(client_error))
self.assertTrue(_is_retryable(rate_limit_error))
Expand Down

0 comments on commit a17b060

Please sign in to comment.