From: Matías Aguirre Date: Mon, 29 Aug 2011 00:39:00 +0000 (-0300) Subject: Use blank string if no email. Closes gh-135 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=85f2b680299d44e51be532ce7864c9a24c064b40;p=django-social-auth.git Use blank string if no email. Closes gh-135 --- diff --git a/social_auth/backends/contrib/github.py b/social_auth/backends/contrib/github.py index 9bc5a5c..124bc22 100644 --- a/social_auth/backends/contrib/github.py +++ b/social_auth/backends/contrib/github.py @@ -37,9 +37,8 @@ class GithubBackend(OAuthBackend): def get_user_details(self, response): """Return user details from Github account""" - print response return {USERNAME: response.get('login'), - 'email': response.get('email'), + 'email': response.get('email') or '', 'first_name': response.get('name')} class GithubAuth(BaseOAuth):