Closed Bug 1006482 Opened 11 years ago Closed 11 years ago

[traceback] last_login is None for some users and it causes multiple errors

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mat, Assigned: ashort)

References

()

Details

I'm seeing the following error when resetting my password on dev: Sentry URL: http://sentry.dmz.phx1.mozilla.com/addons/addons-dev/group/19264/ Traceback: Stacktrace (most recent call last): File "django/core/handlers/base.py", line 114, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "session_csrf/__init__.py", line 138, in wrapper response = f(request, *args, **kw) File "django/utils/decorators.py", line 99, in _wrapped_view response = view_func(request, *args, **kwargs) File "django/contrib/auth/views.py", line 158, in password_reset form.save(**opts) File "users/forms.py", line 101, in save self.base_save(**kw) File "users/forms.py", line 147, in base_save 'token': token_generator.make_token(user), File "django/contrib/auth/tokens.py", line 18, in make_token return self._make_token_with_timestamp(user, self._num_days(self._today())) File "django/contrib/auth/tokens.py", line 59, in _make_token_with_timestamp login_timestamp = user.last_login.replace(microsecond=0, tzinfo=None) AttributeError: 'NoneType' object has no attribute 'replace' The issue is that last_login is None for my user. Which is weird, since https://github.com/mozilla/olympia/commit/7af2aa41a3ee95b02744faf281b5098edf7c641b should have taken care of that.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.