remove try...except workaround for circular import bug fixed by https://github.com/MITx/mitx/issues/1260

This commit is contained in:
ichuang
2013-01-10 23:13:05 -05:00
parent e5c958082b
commit ec94f7328c

View File

@@ -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