Skip to content

Commit 8c8b8f2

Browse files
fix: linting errors
1 parent 3c4068c commit 8c8b8f2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cms/djangoapps/contentstore/rest_api/v0/views/advanced_settings.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from ....views.course import update_course_advanced_settings
1919

2020

21-
2221
@view_auth_classes(is_authenticated=True)
2322
class AdvancedCourseSettingsView(DeveloperErrorViewMixin, APIView):
2423
"""
@@ -209,7 +208,7 @@ def patch(self, request: Request, course_id: str):
209208
# enabling/disabling the course app setting also updates
210209
# the advanced settings, so we remove it from the request data
211210
request.data.pop(setting)
212-
except Exception as exc:
211+
except ValidationError:
213212
# Ignore errors and let the normal flow handle updates
214213
pass
215214

0 commit comments

Comments
 (0)