From a475dfd8d871e8ddac2db6c9774a4563ffa5203c Mon Sep 17 00:00:00 2001 From: Jonathan Laperle Date: Fri, 28 Jun 2024 12:10:52 -0400 Subject: [PATCH] Update lib/galaxy/managers/users.py Co-authored-by: John Davis --- lib/galaxy/managers/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/managers/users.py b/lib/galaxy/managers/users.py index 18f7adf40123..82e949b34ff4 100644 --- a/lib/galaxy/managers/users.py +++ b/lib/galaxy/managers/users.py @@ -613,7 +613,7 @@ def send_reset_email(self, trans, payload, **kwd): def get_reset_token(self, trans, email): reset_user = get_user_by_email(trans.sa_session, email, self.app.model.User) - if reset_user.deleted: + if reset_user and reset_user.deleted: return None, None if not reset_user and email != email.lower(): reset_user = self._get_user_by_email_case_insensitive(trans.sa_session, email)