diff --git a/lms/static/coffee/src/courseware.coffee b/lms/static/coffee/src/courseware.coffee index 1a8910bb28..096094ead9 100644 --- a/lms/static/coffee/src/courseware.coffee +++ b/lms/static/coffee/src/courseware.coffee @@ -14,4 +14,9 @@ class @Courseware XModule.loadModules('display') $('.course-content .histogram').each -> id = $(this).attr('id').replace(/histogram_/, '') - new Histogram id, $(this).data('histogram') + try + histg = new Histogram id, $(this).data('histogram') + catch error + histg = error + console.log(error) + return histg