From 0171e797645e5b1e7d46034212a909c583f7927f Mon Sep 17 00:00:00 2001 From: Jose Antonio Gonzalez Date: Fri, 24 Nov 2017 14:07:23 +0200 Subject: [PATCH] fix pylint [ci skip] --- lms/djangoapps/student_account/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lms/djangoapps/student_account/views.py b/lms/djangoapps/student_account/views.py index 1964eaa439..23efbed7b4 100644 --- a/lms/djangoapps/student_account/views.py +++ b/lms/djangoapps/student_account/views.py @@ -218,7 +218,7 @@ def password_change_request_handler(request): return\ HttpResponse( _("Some error occured during password change. Please try " - "again"), + "again"), status=status_response ) elif status_response == 403: @@ -618,6 +618,9 @@ class RecoverPasswordView(views.APIView): http_method_names = ["post"] def post(self, request, format=None): + """ + Makes the request to change the password + """ email = request.data.get('email') if email: return Response(status=change_password(request, email))