Open GoogleCodeExporter opened 9 years ago
GDataService.RevokeAuthSubToken has same issue.
It is can be fix by following code:
scopes = lookup_scopes(self.service)
if scopes:
token = self.token_store.find_token(scopes[0])
else:
token = self.token_store.find_token(atom.token_store.SCOPE_ALL)
instead of:
scopes = lookup_scopes(self.service)
token = self.token_store.find_token(scopes[0])
Original comment by Sergey.Shishmintzev@gmail.com
on 1 Sep 2010 at 9:12
Wouldn't it be more appropriate for AuthSubTokenInfo() to return None if
lookup_scopes() returns None?
Original comment by joe.gregorio@gmail.com
on 10 Sep 2010 at 2:38
Original issue reported on code.google.com by
Sergey.Shishmintzev@gmail.com
on 1 Sep 2010 at 8:25