@@ -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