Skip to content

Commit

Permalink
fix: log only for allowed_enroll email
Browse files Browse the repository at this point in the history
fix: log only for allowed_enroll email
  • Loading branch information
AhtishamShahid committed Feb 14, 2025
1 parent 3803c73 commit e6296aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lms/djangoapps/instructor/enrollment.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def send_mail_to_student(student, param_dict, language=None):
)

render_msg = presentation.render(DjangoEmailChannel, message)
if not render_msg.body_html.count(student):
if not render_msg.body_html.count(student) and message_type == 'allowed_enroll':
log.error(
{
'message': 'Email template does not contain required email address',
Expand Down

0 comments on commit e6296aa

Please sign in to comment.