Defensive fix

This commit is contained in:
Dave St.Germain
2020-03-06 15:48:01 -05:00
parent b166788a8d
commit 28f33e1667

View File

@@ -194,7 +194,7 @@ class CoursewareIndex(View):
TODO: remove this once exams work in the new MFE.
"""
if (not self.section.is_time_limited) \
if (not getattr(self.section, 'is_time_limited', False)) \
and should_redirect_to_courseware_microfrontend(self.course_key) \
and not request.user.is_staff:
url = get_microfrontend_url(