diff --git a/lib/galaxy/managers/users.py b/lib/galaxy/managers/users.py index c905443f4498..e92aafcd23e4 100644 --- a/lib/galaxy/managers/users.py +++ b/lib/galaxy/managers/users.py @@ -608,6 +608,8 @@ def send_reset_email(self, trans, payload, **kwd): except Exception as e: log.debug(body) return f"Failed to submit email. Please contact the administrator: {util.unicodify(e)}" + if not reset_user: + log.warning(f"Failed to produce password reset token. User with email '{email}' not found.") return None def get_reset_token(self, trans, email):