[Python-modules-commits] [python-social-auth] 28/89: Update base.py

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:15:44 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 8ccc7326fb568042c22d539fad8e50bb7d73b1f1
Author: hellvix <elvisafc at gmail.com>
Date:   Tue Feb 23 14:19:26 2016 -0300

    Update base.py
    
    Fixes exception 'str' object has no attribute 'update' when user profile is updated.
---
 social/storage/base.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/social/storage/base.py b/social/storage/base.py
index 1964bc1..f5f57af 100644
--- a/social/storage/base.py
+++ b/social/storage/base.py
@@ -81,7 +81,7 @@ class UserMixin(object):
 
     def set_extra_data(self, extra_data=None):
         if extra_data and self.extra_data != extra_data:
-            if self.extra_data:
+            if self.extra_data and not isinstance(self.extra_data, str):
                 self.extra_data.update(extra_data)
             else:
                 self.extra_data = extra_data

-- 
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