Source

django-publicauth / openauth / backends / google.py

Diff from to

openauth/backends/google.py

     def get_extra_data(self, resp):
         return FetchResponse.fromSuccessResponse(resp)
 
-    def extract_data(self, data, profile_field, field):
-        return {profile_field: data.getSingle(settings.AX_URIS[field], '')}
+    def extract_data(self, data, field):
+        try:
+            return {field: data.getSingle(settings.AX_URIS[field], '')}
+        except:
+            return {field: ''}