Skip to content

Commit

Permalink
Merge b3df2cc into 46d136f
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Jul 21, 2016
2 parents 46d136f + b3df2cc commit 1b5889f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oauth2_provider/oauth2_validators.py
Expand Up @@ -302,7 +302,8 @@ def save_bearer_token(self, token, request, *args, **kwargs):
try:
RefreshToken.objects.get(token=request.refresh_token).revoke()
except RefreshToken.DoesNotExist:
assert() # TODO though being here would be very strange, at least log the error
# other client already revoked it.
pass

expires = timezone.now() + timedelta(seconds=oauth2_settings.ACCESS_TOKEN_EXPIRE_SECONDS)
if request.grant_type == 'client_credentials':
Expand Down

0 comments on commit 1b5889f

Please sign in to comment.