Skip to content

Commit

Permalink
Removing odd redirect check and adding back in previous check
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-codeinstitute committed Mar 6, 2024
1 parent dea92ae commit ba15d23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lms/djangoapps/courseware/views/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def _redirect_if_course_updated():

return self.render(request)
except CourseAccessRedirect as exception: # pylint: disable=broad-except
_redirect_if_course_updated()
return CourseTabView.handle_exceptions(request, self.course_key, self.course, exception)
except CoursewareAccessException as exception: # pylint: disable=broad-except
_redirect_if_course_updated()
Expand Down Expand Up @@ -254,7 +255,7 @@ def render(self, request):
self.section = self._find_section()

if self.chapter and self.section:
self._redirect_if_not_requested_section()
# self._redirect_if_not_requested_section()
self._save_positions()
self._prefetch_and_bind_section()
self._redirect_to_learning_mfe()
Expand Down

0 comments on commit ba15d23

Please sign in to comment.