Skip to content

Commit 444314d

Browse files
committed
Linting fixes
1 parent 061b888 commit 444314d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

mozilla_django_oidc/auth.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,11 @@ def raise_token_response_error(self, response):
247247
if response.status_code == 200:
248248
return
249249
# otherwise something is up...
250-
http_error_msg = f"Get Token Error (url: {response.url}, status: {response.status_code}, body: {response.text})"
250+
http_error_msg = (
251+
f"Get Token Error (url: {response.url}, "
252+
f"status: {response.status_code}, "
253+
f"body: {response.text})"
254+
)
251255
raise HTTPError(http_error_msg, response=response)
252256

253257
def get_userinfo(self, access_token, id_token, payload):

mozilla_django_oidc/views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ def get(self, request):
8888
auth.logout(request)
8989
assert not request.user.is_authenticated
9090
elif "code" in request.GET and "state" in request.GET:
91-
9291
# Check instead of "oidc_state" check if the "oidc_states" session key exists!
9392
if "oidc_states" not in request.session:
9493
return self.login_failure()

0 commit comments

Comments
 (0)