Skip to content

Commit

Permalink
Merge pull request #3 from neptyneco/check-neptyne-token
Browse files Browse the repository at this point in the history
Set to None if no credentials can be found
  • Loading branch information
jamadeo authored Nov 12, 2024
2 parents 9eb227f + bf4e7cb commit 224ad85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions neptyne_kernel/dash.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,8 @@ def _discover_google_credentials(self):
return self._load_authorized_credentials(authorized_user)
elif (oauth_credentials := config_path / "oauth_credentials.json").exists():
return self._load_oauth_credentials(oauth_credentials)
else:
self._google_credentials = None

def _authorize_service_account(self, credentials: Path):
from google.oauth2.service_account import Credentials
Expand Down

0 comments on commit 224ad85

Please sign in to comment.