The generic error views for 403, 404, and 500 can themselves raise exceptions, resulting in users not having intelligible error pages and making it harder for service operators to understand what is happening.
See #35151 for some past fallout of these problems. Note in particular that bad translations can cause error pages to raise exceptions at any time.
Acceptance criteria:
The generic error views for 403, 404, and 500 can themselves raise exceptions, resulting in users not having intelligible error pages and making it harder for service operators to understand what is happening.
See #35151 for some past fallout of these problems. Note in particular that bad translations can cause error pages to raise exceptions at any time.
Acceptance criteria:
lms/djangoapps/static_template_view/views.pythat manages some kind of error condition must have a try/except and a fallback to a hardcoded string. No DB calls, translations, etc. in the hardcoded value.get_enterprise_learner_portal(private 2U ticket for Enterprise team: https://2u-internal.atlassian.net/browse/ENT-9293)