remove try...except workaround for circular import bug fixed by https://github.com/MITx/mitx/issues/1260
This commit is contained in:
@@ -13,12 +13,7 @@ from xmodule.modulestore import Location
|
||||
from xmodule.timeparse import parse_time
|
||||
from xmodule.x_module import XModule, XModuleDescriptor
|
||||
|
||||
# student.models imports Role, which imports courseware.access ; use a try, to break the circular import
|
||||
try:
|
||||
from student.models import CourseEnrollmentAllowed
|
||||
except Exception as err:
|
||||
CourseEnrollmentAllowed = None
|
||||
|
||||
from student.models import CourseEnrollmentAllowed
|
||||
|
||||
DEBUG_ACCESS = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user