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

Use target.service in error messages. · RTDataScience/docker-python@bef0ead · GitHub

Commit bef0ead

Browse files
committed
Use target.service in error messages.
1 parent 125c75e commit bef0ead

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎patches/kaggle_gcp.py‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,9 @@ def refresh(self, request):
5757
raise RefreshError('Unable to refresh access token due to connection error.') from e
5858
except Exception as e:
5959
Log.error(f"Error trying to refresh access token: {e}")
60-
if (not get_integrations().has_bigquery() and self.target == GcpTarget.BIGQUERY):
61-
Log.error(f"No bigquery integration found.")
62-
print(
63-
'Please ensure you have selected a BigQuery account in the Kernels Settings sidebar.')
60+
Log.error(f"No {self.target.service} integration found.")
61+
print(
62+
f"Please ensure you have selected a {self.target.service} account in the Kernels Settings sidebar.")
6463
raise RefreshError('Unable to refresh access token.') from e
6564

6665

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL