From 85f2b680299d44e51be532ce7864c9a24c064b40 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C3=ADas=20Aguirre?= Date: Sun, 28 Aug 2011 21:39:00 -0300 Subject: [PATCH] Use blank string if no email. Closes gh-135 --- social_auth/backends/contrib/github.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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): -- 2.39.5