From f47cfa6614b0b41476af6d66280e3272a661979f Mon Sep 17 00:00:00 2001 From: redxef Date: Wed, 28 Sep 2022 17:32:36 +0200 Subject: [PATCH] Add some simple debug print stmts. --- adapters/google.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/adapters/google.py b/adapters/google.py index 062a3ec..16e8bdc 100644 --- a/adapters/google.py +++ b/adapters/google.py @@ -29,8 +29,11 @@ class Google(): self.credentials = None def login(self): + print('token_file =', self.token_file) + print('exists?', os.path.exists(self.token_file)) if os.path.exists(self.token_file): self.credentials = Credentials.from_authorized_user_file(self.token_file, SCOPES) + print('valid?', self.credentials.valid) if self.credentials is None or not self.credentials.valid: if self.credentials is not None \ and self.credentials.expired \