How to avoid HttpAccessTokenRefreshError if the grant is deleted from list of permitted apps on Google

By user60775

I’m new to Python and oauth2client library. I’m building a def which check for a valid credentials. I noticed that if I delete the grant from, then credentials.get_access_token(http) or similar does returns the old access_token. The program will run only into exception when credentials.refresh(http) is called.

Is there any way I could catch this exception before the credential is refreshed?

Source: Stack Overflow


Share it with your friends!

    Fatal error: Uncaught Exception: 12: REST API is deprecated for versions v2.1 and higher (12) thrown in /home/content/19/9652219/html/wp-content/plugins/seo-facebook-comments/facebook/base_facebook.php on line 1273