From a83c5cd447a1d7221b6fb41728e46e9d12a16653 Mon Sep 17 00:00:00 2001 From: Mubbshar Anwar <78487564+mubbsharanwar@users.noreply.github.com> Date: Thu, 12 May 2022 12:28:53 +0500 Subject: [PATCH] fix: attribute error (#30372) saved program attribute error in send_program_reminder_emails command --- .../management/commands/send_program_reminder_emails.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/save_for_later/management/commands/send_program_reminder_emails.py b/lms/djangoapps/save_for_later/management/commands/send_program_reminder_emails.py index 650fa42978..f558a7cc2c 100644 --- a/lms/djangoapps/save_for_later/management/commands/send_program_reminder_emails.py +++ b/lms/djangoapps/save_for_later/management/commands/send_program_reminder_emails.py @@ -74,7 +74,7 @@ class Command(BaseCommand): 'reminder': True, 'braze_event': USER_SEND_SAVE_FOR_LATER_REMINDER_EMAIL, } - if user and get_program_enrollment(program_uuid=saved_program.uuid, user=user): + if user and get_program_enrollment(program_uuid=saved_program.program_uuid, user=user): continue email_sent = send_email(saved_program.email, program_data) if email_sent: