File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -125,10 +125,12 @@ def get_google_id_token(audience: Optional[str] = None) -> str:
125
125
if new_id_token :
126
126
_update_cache (new_id_token )
127
127
return BEARER_TOKEN_PREFIX + new_id_token
128
-
128
+
129
129
if audience is None :
130
- raise Exception ('You are not authenticating using User Credentials.'
131
- ' Please set the audience string to the Toolbox service URL to get the Google ID token.' )
130
+ raise Exception (
131
+ "You are not authenticating using User Credentials."
132
+ " Please set the audience string to the Toolbox service URL to get the Google ID token."
133
+ )
132
134
133
135
# Get credentials for Google Cloud environments or for service account key files
134
136
try :
Original file line number Diff line number Diff line change @@ -229,4 +229,4 @@ def test_get_raises_if_no_audience_and_no_local_token(
229
229
auth_methods .get_google_id_token ()
230
230
231
231
mock_default .assert_called_once ()
232
- mock_fetch .assert_not_called ()
232
+ mock_fetch .assert_not_called ()
You can’t perform that action at this time.
0 commit comments