Skip to content

Commit

Permalink
Make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
akatsoulas committed Nov 14, 2022
1 parent c1c4076 commit 9cde115
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mozilla_django_oidc/contrib/drf.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ def authenticate(self, request):
# we can get from the www-authentication header) in the response.
if resp.status_code == 401 and "www-authenticate" in resp.headers:
data = parse_www_authenticate_header(resp.headers["www-authenticate"])
raise exceptions.AuthenticationFailed(data.get("error_description", "no error description in www-authenticate"))
raise exceptions.AuthenticationFailed(
data.get(
"error_description", "no error description in www-authenticate"
)
)

# for all other http errors, just re-raise the exception.
raise
Expand Down

0 comments on commit 9cde115

Please sign in to comment.