{"action":"opened","issue":{"url":"https://api.github.com/repos/brightforme/python-bright/issues/9","labels_url":"https://api.github.com/repos/brightforme/python-bright/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/brightforme/python-bright/issues/9/comments","events_url":"https://api.github.com/repos/brightforme/python-bright/issues/9/events","html_url":"https://github.com/brightforme/python-bright/issues/9","id":101907457,"number":9,"title":"Client creation can raise an exception from requests","user":{"login":"Kazy","id":59063,"avatar_url":"https://avatars.githubusercontent.com/u/59063?v=3","gravatar_id":"","url":"https://api.github.com/users/Kazy","html_url":"https://github.com/Kazy","followers_url":"https://api.github.com/users/Kazy/followers","following_url":"https://api.github.com/users/Kazy/following{/other_user}","gists_url":"https://api.github.com/users/Kazy/gists{/gist_id}","starred_url":"https://api.github.com/users/Kazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kazy/subscriptions","organizations_url":"https://api.github.com/users/Kazy/orgs","repos_url":"https://api.github.com/users/Kazy/repos","events_url":"https://api.github.com/users/Kazy/events{/privacy}","received_events_url":"https://api.github.com/users/Kazy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-19T14:29:50Z","updated_at":"2015-08-19T14:29:50Z","closed_at":null,"body":"During the client creation and because this is handle by `request_oauthlib`, any exception (aka non 2xx HTTP code) will be thrown as a requests.exception.HTTPException. We should catch it and transform it to our own. This add a bit of boilerplate code, but avoid the lib user to jungle between to kind of exception representing the same thing.\r\n\r\nThe other possibility would be to use only the exception from `requests`."}}