sarumont/py-trello — pull request #10 by dirk-olmes (2012-06-06 14:24:59+00:00)
Title: Throw Unauthorized exception if the request returns a 401 status

I'm building a desktop app that integrates our internal bugtracking with Trello. I'm guiding the user through the OAuth process and store the oauth token locally, reusing it until it expires. In order to detect token expiration I'd like to see a different exception being raised so I can properly handle this case.