mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
Fix typo to fetch user email from user_profile object
(imported from commit 3d6294e85dc56dae00e624e00d8add158ef6aabf)
This commit is contained in:
@@ -1295,7 +1295,7 @@ def handle_missedmessage_emails(user_profile_id, missed_email_events):
|
||||
last_reminder = user_profile.last_reminder
|
||||
if last_reminder is not None and is_naive(last_reminder):
|
||||
logging.warning("Loaded a user_profile.last_reminder for user %s that's not tz-aware: %s"
|
||||
% (user_profile.user.email, last_reminder))
|
||||
% (user_profile.email, last_reminder))
|
||||
last_reminder = last_reminder.replace(tzinfo=utc)
|
||||
|
||||
waitperiod = datetime.timedelta(hours=UserProfile.EMAIL_REMINDER_WAITPERIOD)
|
||||
|
||||
Reference in New Issue
Block a user