Skip to content

Conversation

@Akanshu-2u
Copy link
Contributor

Description:

User retirement failed when CourseOverview records were missing, causing CourseOverview.DoesNotExist exceptions in bulk email signal handler.

Solution:

Added exception handling in force_optout_all signal handler:

  • Added CourseOverview import
  • Wrapped Optout.objects.get_or_create() in try/except block
  • Log warning and skip enrollment when CourseOverview is missing

Private JIRA Link:

BOMS-370

@robrap
Copy link
Contributor

robrap commented Jan 29, 2026

@Akanshu-2u:

  1. Is this a cherry-pick of something we already landed on our fork? If so, can you link to that approved PR in the description?
  2. The process for you to work against an openedx repo is to create a personal fork and create the PR there. See our forking docs for details. I'm going to close this PR. Thank you.

@robrap robrap closed this Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants