Skip to content

Commit

Permalink
feat!: upgrading api to DRF.
Browse files Browse the repository at this point in the history
  • Loading branch information
awais786 committed Sep 24, 2024
1 parent 405cc1b commit 9a28eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lms/djangoapps/instructor/views/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3653,7 +3653,7 @@ def post(self, request, course_id):

try:
certificate = _get_certificate_for_user(course_key, student)
except Exception as ex:
except Exception as ex: # pylint: disable=broad-except
return JsonResponse({'message': str(ex)}, status=400)

# Invalidate certificate of the given student for the course course
Expand Down

0 comments on commit 9a28eac

Please sign in to comment.