Handle exceptions in user GitHub API
Handle exceptions in user GitHub API

After a successful login using OAuth, the user's name, email and login
are requested from the GitHub API using the user's OAuth token. This
request could fail for a number of reasons, such as
 - network problems locally or remotely
 - incorrect responses (e.g. not a valid JSON response)
 - incomplete responses (e.g. the JSON does not contain what we expect)

Handle these potential issues and show a helpful message indicating
there was a problem with the API.

trac-hacks/trac-github