added exception detail
This commit is contained in:
parent
b37b634f59
commit
9dc12b36bb
|
|
@ -113,7 +113,7 @@ class OAuth2SignUpView(OAuth2ViewMixin, JWTGenericViewMixin):
|
|||
|
||||
# Check OAuth2 response
|
||||
if oauth2_status != status.HTTP_200_OK:
|
||||
raise utils_exceptions.OAuth2Error()
|
||||
raise utils_exceptions.OAuth2Error(detail=body)
|
||||
|
||||
# Get authenticated user
|
||||
user = User.objects.by_oauth2_access_token(token=body.get('access_token'))\
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user