Skip to content
Snippets Groups Projects
Commit 28f33e16 authored by Dave St.Germain's avatar Dave St.Germain
Browse files

Defensive fix

parent b166788a
No related branches found
Tags release-2020-03-09-12.11
Loading
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment