Skip to content

Commit

Permalink
fix: remove unnecessary pylint suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
mariajgrimaldi committed Dec 10, 2024
1 parent b8faf73 commit f1a84a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/djangoapps/student/views/management.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,8 @@ def change_enrollment(request, check_access=True):
enroll_mode = CourseMode.auto_enroll_mode(course_id, available_modes)
if enroll_mode:
CourseEnrollment.enroll(user, course_id, check_access=check_access, mode=enroll_mode)
except EnrollmentNotAllowed as exec: # pylint: disable=broad-except
return HttpResponseBadRequest(str(exec))
except EnrollmentNotAllowed as exc:
return HttpResponseBadRequest(str(exc))
except Exception: # pylint: disable=broad-except
return HttpResponseBadRequest(_("Could not enroll"))

Expand Down

0 comments on commit f1a84a5

Please sign in to comment.