#NEWLINE# def get_google_access_token( email ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# me = UserSocialAuth . objects . get ( uid = email , provider = 'google-oauth2' ) #NEWLINE# return me . extra_data [ 'access_token' ] #NEWLINE# #UNINDENT# except ( UserSocialAuth . DoesNotExist , KeyError ) : #NEWLINE# #INDENT# raise AccessTokenNotFound