Compare commits

...

1 commit
master ... test

Author SHA1 Message Date
f47cfa6614
Add some simple debug print stmts. 2022-09-28 17:32:36 +02:00

View file

@ -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 \