'NoneType' object has no attribute 'is_valid'

Description

TracedError reported from New Relic
Application: prod-edx-edxapp-lms
https://rpm.newrelic.com/accounts/88178/applications/3343327/traced_errors/2f9bbb02-1089-11e7-a0d6-c81f66b8ceca_0_3866

Timestamp: March 24, 2017 03:58
Exception Class: exceptions:AttributeError
Error Action: /student.viewsassword_reset_confirm_wrapper
Uri: /password_reset_confirm/8fqgf-4km-d74d7ee5d40236a9d9a6/

Implementation Notes

  1. It is possible that Djnago return NoneType Form, see https://github.com/django/django/blob/master/django/contrib/auth/views.py#L308.

  2. We need to add check here https://github.com/edx/edx-platform/blob/master/common/djangoapps/student/views.py#L2632

Steps to Reproduce

None

Current Behavior

None

Expected Behavior

None

Reason for Variance

None

Release Notes

None

User Impact Summary

None

Status

Assignee

Tasawer Nawaz

Reporter

New Relic

Reach

None

Impact

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

1

Category of Work

None

Stakeholders

None

Story Points

1

Priority

CAT-2
Configure