googleapis / python-bigquery

Apache License 2.0
733 stars 299 forks source link

Bug: revises Exception type #1994

Closed chalmerlowe closed 1 month ago

chalmerlowe commented 1 month ago

Revises an exception type to a type that is more descriptive of the true problem.

Specifically, migrates from an http.client.FORBIDDEN exception to an TooManyRequests Error if a user experiences a rateLimitExceeded condition. This enables automated systems to more appropriately respond in situations where the rate limit is exceeded.

Fixes #1985 🦕

conventional-commit-lint-gcf[bot] commented 1 month ago

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot https://conventionalcommits.org/

chalmerlowe commented 1 month ago

The failure of the Kokoro docs-presubmit is a separate issue and is being handled in this PR: https://github.com/googleapis/python-bigquery/pull/1995

cozos commented 1 month ago

Thank you so much @chalmerlowe