@@ -215,9 +215,9 @@ def _load_application(self, client_id, request):
215215 client_id and store it in request.client
216216 """
217217 if request .client :
218- """ check for cached client, to save the db hit if this has alredy been loaded """
218+ # check for cached client, to save the db hit if this has already been loaded
219219 if not isinstance (request .client , Application ):
220- log .debug ("request.client is not an Application, something else set request.client erroroneously , resetting request.client." )
220+ log .debug ("request.client is not an Application, something else set request.client erroneously , resetting request.client." )
221221 request .client = None
222222 elif request .client .client_id != client_id :
223223 log .debug ("request.client client_id does not match the given client_id, resetting request.client." )
@@ -229,7 +229,7 @@ def _load_application(self, client_id, request):
229229 log .debug ("request.client is a valid Application, reusing it." )
230230 return request .client
231231 try :
232- """ cache wasn't hit, load from db """
232+ # cache wasn't hit, load from db
233233 log .debug ("cache not hit, Loading application from database for client_id %r" , client_id )
234234 client = Application .objects .get (client_id = client_id )
235235 if not client .is_usable (request ):
0 commit comments