Skip to content

Commit

Permalink
fix: Ignore AttributeError exception when importing google.auth.aio
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 691875215
  • Loading branch information
sasha-gitg authored and copybara-github committed Oct 31, 2024
1 parent 7edeedb commit 832fe60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/cloud/aiplatform/initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

AsyncCredentials = google.auth.aio.credentials.Credentials
_HAS_ASYNC_CRED_DEPS = True
except ImportError:
except (ImportError, AttributeError):
AsyncCredentials = Any
_HAS_ASYNC_CRED_DEPS = False

Expand Down

0 comments on commit 832fe60

Please sign in to comment.