ask/python-github2 — pull request #71 by sionide21 (2012-01-06 15:59:26+00:00)
Title: Handle unrecognized HTTP error codes from API

I tried to create a pull request that already existed and Github returned an HTTP 422 error. This caused a KeyError to be raised when trying to parse the response.

This change makes it simply attach a blank message to the HTTPError.