FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update gcp integration error messages. b/146443208 (#680) · HpcDataLab/docker-python@b017e4e · GitHub

Commit b017e4e

Browse files
authored
Update gcp integration error messages. b/146443208 (Kaggle#680)
1 parent da9dc06 commit b017e4e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎patches/kaggle_gcp.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def refresh(self, request):
7575
if (not get_integrations().has_integration(self.target)):
7676
Log.error(f"No {self.target.service} integration found.")
7777
print(
78-
f"Please ensure you have selected a {self.target.service} account in the Kernels Settings sidebar.")
78+
f"Please ensure you have selected a {self.target.service} account in the Notebook Add-ons menu.")
7979
raise RefreshError('Unable to refresh access token.') from e
8080

8181

@@ -96,7 +96,7 @@ def api_request(self, *args, **kwargs):
9696
return super().api_request(*args, **kwargs)
9797
except Forbidden as e:
9898
msg = ("Permission denied using Kaggle's public BigQuery integration. "
99-
"Did you mean to select a BigQuery account in the Kernels Settings sidebar?")
99+
"Did you mean to select a BigQuery account in the Notebook Add-ons menu?")
100100
print(msg)
101101
Log.info(msg)
102102
raise e
@@ -131,7 +131,7 @@ def init_bigquery():
131131
if not (is_proxy_token_set or is_user_secrets_token_set):
132132
return bigquery
133133

134-
# If this Kernel has bigquery integration on startup, preload the Kaggle Credentials
134+
# If this Notebook has bigquery integration on startup, preload the Kaggle Credentials
135135
# object for magics to work.
136136
if get_integrations().has_bigquery():
137137
from google.cloud.bigquery import magics
@@ -162,7 +162,7 @@ def monkeypatch_bq(bq_client, *args, **kwargs):
162162
if (not has_bigquery):
163163
Log.info("No bigquery integration found, creating client anyways.")
164164
print('Please ensure you have selected a BigQuery '
165-
'account in the Kernels Settings sidebar.')
165+
'account in the Notebook Add-ons menu.')
166166
if explicit_project_id is None:
167167
Log.info("No project specified while using the unmodified client.")
168168
print('Please ensure you specify a project id when creating the client'

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL