Skip to content

add error handling for 401 response from google #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

cpdean
Copy link

@cpdean cpdean commented Jun 18, 2012

There's a subtle bug on line 46:
https://github.com/mitsuhiko/flask-oauth/blob/master/example/google.py#L46

If you've entered that except block, res hasn't been assigned yet.

I was able to fix a bug in a project that I modeled after google.py by handling the 401 this way. I wasn't able to recreate the bug in this example, though.

@mitsuhiko mitsuhiko closed this in 211ae7f Oct 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants