mitsuhiko/flask-oauth — pull request #28 by cpdean (2012-06-18 01:58:10+00:00)
Title: add error handling for 401 response from google

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.