Implement course handouts

LEARNER-607
This commit is contained in:
Andy Armstrong
2017-04-24 15:29:34 -04:00
parent e7e7b3bc15
commit 25229a741b
6 changed files with 32 additions and 14 deletions

View File

@@ -278,7 +278,7 @@ def get_course_info_section(request, user, course, section_key):
html = ''
if info_module is not None:
try:
html = info_module.render(STUDENT_VIEW).content
html = info_module.render(STUDENT_VIEW).content.strip()
except Exception: # pylint: disable=broad-except
html = render_to_string('courseware/error-message.html', None)
log.exception(