Skip to content

Commit a46a7a1

Browse files
fix: fix impersonated cred exception doc (#521)
1 parent 6d8a257 commit a46a7a1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/google-auth/google/auth/impersonated_credentials.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ def _make_iam_token_request(request, principal, headers, body):
7575
API call.
7676
7777
Raises:
78-
TransportError: Raised if there is an underlying HTTP connection
79-
Error
80-
DefaultCredentialsError: Raised if the impersonated credentials
81-
are not available. Common reasons are
82-
`iamcredentials.googleapis.com` is not enabled or the
83-
`Service Account Token Creator` is not assigned
78+
google.auth.exceptions.TransportError: Raised if there is an underlying
79+
HTTP connection error
80+
google.auth.exceptions.RefreshError: Raised if the impersonated
81+
credentials are not available. Common reasons are
82+
`iamcredentials.googleapis.com` is not enabled or the
83+
`Service Account Token Creator` is not assigned
8484
"""
8585
iam_endpoint = _IAM_ENDPOINT.format(principal)
8686

0 commit comments

Comments
 (0)