Commits

Anonymous committed 4483880

[svn r73] fix issue #29

  • Participants
  • Parent commits 0ce5ec0

Comments (0)

Files changed (1)

django_authopenid/util.py

 def from_openid_response(openid_response):
     """ return openid object from response """
     issued = int(time.time())
+    sreg_resp = sreg.SRegResponse.fromSuccessResponse(openid_response) \
+            or []
+    
     return OpenID(
         openid_response.identity_url, issued, openid_response.signed_fields, 
-         dict(sreg.SRegResponse.fromSuccessResponse(openid_response))
+         dict(sreg_resp)
     )