[Python-modules-commits] [python-social-auth] 41/89: Update twitter.py
Wolfgang Borgert
debacle at moszumanska.debian.org
Sat Dec 24 15:15:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to tag v0.2.15
in repository python-social-auth.
commit 23555a6b3ab58ffab2ecf7957cf715fb3ac49d72
Author: hellvix <elvisafc at gmail.com>
Date: Fri Mar 11 22:03:09 2016 +0100
Update twitter.py
Changed .get() method. Added default value.
---
social/backends/twitter.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/social/backends/twitter.py b/social/backends/twitter.py
index 9058bcf..b07257b 100644
--- a/social/backends/twitter.py
+++ b/social/backends/twitter.py
@@ -27,7 +27,7 @@ class TwitterOAuth(BaseOAuth1):
"""Return user details from Twitter account"""
fullname, first_name, last_name = self.get_user_names(response['name'])
return {'username': response['screen_name'],
- 'email': response.get('email'),
+ 'email': response.get('email', ''),
'fullname': fullname,
'first_name': first_name,
'last_name': last_name}
--
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