diff --git a/lms/djangoapps/courseware/module_render.py b/lms/djangoapps/courseware/module_render.py index a65d73e4bc..1958639248 100644 --- a/lms/djangoapps/courseware/module_render.py +++ b/lms/djangoapps/courseware/module_render.py @@ -29,7 +29,7 @@ from xmodule_modifiers import replace_course_urls, replace_static_urls, add_hist log = logging.getLogger("mitx.courseware") -if settings.XQUEUE_INTERFACE['basic_auth'] is not None: +if settings.XQUEUE_INTERFACE.get('basic_auth') is not None: requests_auth = HTTPBasicAuth(*settings.XQUEUE_INTERFACE['basic_auth']) else: requests_auth = None