Skip to content

Commit 832fe60

Browse files
sasha-gitgcopybara-github
authored andcommitted
fix: Ignore AttributeError exception when importing google.auth.aio
PiperOrigin-RevId: 691875215
1 parent 7edeedb commit 832fe60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/cloud/aiplatform/initializer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
AsyncCredentials = google.auth.aio.credentials.Credentials
5353
_HAS_ASYNC_CRED_DEPS = True
54-
except ImportError:
54+
except (ImportError, AttributeError):
5555
AsyncCredentials = Any
5656
_HAS_ASYNC_CRED_DEPS = False
5757

0 commit comments

Comments
 (0)