Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dbalabka committed Sep 19, 2024
1 parent dd5ef54 commit 7609a6e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dask_cloudprovider/gcp/instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,10 @@ def refresh_client(self):
import google.auth

# Obtain Application Default Credentials
credentials, _ = google.auth.default()
try:
credentials, _ = google.auth.default()
except google.auth.exceptions.DefaultCredentialsError:
credentials = None

# Use the credentials to build a service client
return googleapiclient.discovery.build(
Expand Down

0 comments on commit 7609a6e

Please sign in to comment.