mmangino/mogli — pull request #92 by s1kx (2011-11-20 15:44:55+00:00)
Title: Fix HTTPException to not be thrown on every Facebook error

When a Facebook occurs on Graph API calls, the server replies with a 403 HTTP error code. Thus mogli would always throw a HTTPException without any further information on it (thrown by raise_error_if_necessary).
By first checking the response body for an error message and type, we make sure that we get proper exceptions in all cases.