log exception for further context

This commit is contained in:
DawoudSheraz
2019-12-06 15:06:19 +05:00
parent 054fa85fc6
commit 99d694c86c

View File

@@ -441,6 +441,7 @@ class CapaMixin(ScorableXBlockMixin, CapaFields):
})
def handle_fatal_lcp_error(self, error):
log.exception(u"LcpFatalError Encountered for {block}".format(block=str(self.location)))
if error:
return(
HTML(u'<p>Error formatting HTML for problem:</p><p><pre style="color:red">{msg}</pre></p>').format(