Skip to content

Commit e572389

Browse files
committed
chore: address copilot feedback.
#1252 (review)
1 parent 611cd52 commit e572389

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

oauth2_provider/oauth2_validators.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ def _load_application(self, client_id, request):
203203
client_id and store it in request.client
204204
"""
205205
if request.client:
206-
""" check for cached client, to save the db hit if this has alredy been loaded """
206+
# check for cached client, to save the db hit if this has already been loaded
207207
if not isinstance(request.client, Application):
208-
log.debug("request.client is not an Application, something else set request.client erroroneously, resetting request.client.")
208+
log.debug("request.client is not an Application, something else set request.client erroneously, resetting request.client.")
209209
request.client = None
210210
elif request.client.client_id != client_id:
211211
log.debug("request.client client_id does not match the given client_id, resetting request.client.")
@@ -217,7 +217,7 @@ def _load_application(self, client_id, request):
217217
log.debug("request.client is a valid Application, reusing it.")
218218
return request.client
219219
try:
220-
""" cache wasn't hit, load from db """
220+
# cache wasn't hit, load from db
221221
log.debug("cache not hit, Loading application from database for client_id %r", client_id)
222222
client = Application.objects.get(client_id=client_id)
223223
if not client.is_usable(request):

0 commit comments

Comments
 (0)