From bf4e7cbfd5ee1b0efd5f35620cd920ff2851c6a1 Mon Sep 17 00:00:00 2001 From: Jack Amadeo Date: Tue, 12 Nov 2024 09:47:43 -0500 Subject: [PATCH] Set to None if no credentials can be found --- neptyne_kernel/dash.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neptyne_kernel/dash.py b/neptyne_kernel/dash.py index 0c197f5..674ec24 100644 --- a/neptyne_kernel/dash.py +++ b/neptyne_kernel/dash.py @@ -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