From 95db5fb28db59c196a1fc98fefcffb8a14e90765 Mon Sep 17 00:00:00 2001 From: mubbsharanwar Date: Fri, 1 Aug 2025 18:46:58 +0500 Subject: [PATCH] fix: remove redundant code --- .../contentstore/views/certificates.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/cms/djangoapps/contentstore/views/certificates.py b/cms/djangoapps/contentstore/views/certificates.py index 052bca72aa..50039cf00d 100644 --- a/cms/djangoapps/contentstore/views/certificates.py +++ b/cms/djangoapps/contentstore/views/certificates.py @@ -51,7 +51,7 @@ from xmodule.modulestore.django import modulestore # lint-amnesty, pylint: disa from cms.djangoapps.contentstore.views.serializers import CertificateActivationSerializer, CertificateSerializer from cms.djangoapps.contentstore.views.permissions import HasStudioWriteAccess -from .certificate_manager import CertificateManager +from .certificate_manager import CertificateManager, CertificateValidationError from ..toggles import use_new_certificates_page from ..utils import ( get_certificates_context, @@ -75,21 +75,6 @@ def _get_course_and_check_access(course_key, user, depth=0): return course_block -# Certificates Exceptions -class CertificateException(Exception): - """ - Base exception for Certificates workflows - """ - pass # lint-amnesty, pylint: disable=unnecessary-pass - - -class CertificateValidationError(CertificateException): - """ - An exception raised when certificate information is invalid. - """ - pass # lint-amnesty, pylint: disable=unnecessary-pass - - class ModulestoreMixin: """ Mixin to provide a get_modulestore() method for views.