[Python-modules-commits] [python-social-auth] 276/322: fail gracefully on missing email

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:13:19 UTC 2016


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to tag v0.2.10
in repository python-social-auth.

commit 85a79ac592f035ca18d04b1beca02604e544dc51
Author: Nick Sullivan <nick at sullivanflock.com>
Date:   Mon Apr 20 10:17:41 2015 -0700

    fail gracefully on missing email
---
 social/backends/changetip.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/social/backends/changetip.py b/social/backends/changetip.py
index 10470d5..d2e49c3 100644
--- a/social/backends/changetip.py
+++ b/social/backends/changetip.py
@@ -16,7 +16,7 @@ class ChangeTipOAuth2(BaseOAuth2):
     def get_user_details(self, response):
         """Return user details from ChangeTip account"""
         return {'username': response['username'],
-                'email': response['email'] or ''}
+                'email': response.get('email', '')}
 
     def user_data(self, access_token, *args, **kwargs):
         """Loads user data from service"""

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git



More information about the Python-modules-commits mailing list