Skip to content
Browse files

Return None is better imho.

  • Loading branch information...
1 parent c45c523 commit c9016236e93f13c9abda0837352dcda1a8bec34a @serdardalgic serdardalgic committed Mar 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 social_auth/backends/pipeline/social.py
View
2 social_auth/backends/pipeline/social.py
@@ -28,7 +28,7 @@ def social_auth_user(backend, uid, user=None, *args, **kwargs):
def associate_user(backend, user, uid, social_user=None, *args, **kwargs):
"""Associate user social account with user instance."""
if social_user or not user:
- return {}
+ return None
try:
social = UserSocialAuth.create_social_auth(user, uid, backend.name)

0 comments on commit c901623

Please sign in to comment.
Something went wrong with that request. Please try again.