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

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.

1 participant