File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1
1
import asyncio
2
- import os
3
2
import uuid
4
3
import json
5
4
6
- import sqlite3
7
5
from typing import Optional , Any , Dict
8
6
9
7
import dask
10
- from dask .utils import tmpfile
11
8
from dask_cloudprovider .generic .vmcluster import (
12
9
VMCluster ,
13
10
VMInterface ,
@@ -672,11 +669,11 @@ def refresh_client(self):
672
669
else :
673
670
import google .auth
674
671
675
- # Obtain Application Default Credentials
672
+ # Obtain Application Default Credentials (ADC)
676
673
try :
677
674
credentials , _ = google .auth .default ()
678
- except google .auth .exceptions .DefaultCredentialsError :
679
- credentials = None
675
+ except google .auth .exceptions .DefaultCredentialsError as e :
676
+ raise GCPCredentialsError () from e
680
677
681
678
# Use the credentials to build a service client
682
679
return googleapiclient .discovery .build (
You can’t perform that action at this time.
0 commit comments