Skip to content

Commit

Permalink
Update lib/galaxy/managers/users.py
Browse files Browse the repository at this point in the history
Co-authored-by: John Davis <[email protected]>
  • Loading branch information
laperlej and jdavcs authored Jun 28, 2024
1 parent e69d7b2 commit a475dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/managers/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a475dfd

Please sign in to comment.