Error when user running bot doesn't have a public email set
I was playing around in a newly created test account and got this error:
DEBUG:github.Requester:GET https://api.github.com/user/emails {'Authorization': 'token (oauth token removed)', 'User-Agent': 'PyGithub/Python'} null ==> 404 {'status': '404 Not Found', 'x-accepted-oauth-scopes': 'user, user:email', 'content-length': '77', 'x-github-media-type': 'github.v3; format=json', 'x-content-type-options': 'nosniff', 'content-security-policy': "default-src 'none'", 'access-control-expose-headers': 'ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval', 'x-github-request-id': 'BF1E:2D087:42319D:78A1DC:59677454', 'strict-transport-security': 'max-age=31536000; includeSubdomains; preload', 'x-oauth-scopes': 'public_repo', 'x-ratelimit-remaining': '4874', 'server': 'GitHub.com', 'x-ratelimit-limit': '5000', 'x-runtime-rack': '0.018500', 'date': 'Thu, 13 Jul 2017 13:23:32 GMT', 'x-frame-options': 'deny', 'access-control-allow-origin': '*', 'content-type': 'application/json; charset=utf-8', 'x-xss-protection': '1; mode=block', 'x-ratelimit-reset': '1499955462'} {"message":"Not Found","documentation_url":"https://developer.github.com/v3"}
It went away after I set a public e-mail address. Not sure if it's necessary or worth fixing, just FYI!