diff --git a/common/lib/xmodule/xmodule/capa_base.py b/common/lib/xmodule/xmodule/capa_base.py index bc6f7a8052..0944646079 100644 --- a/common/lib/xmodule/xmodule/capa_base.py +++ b/common/lib/xmodule/xmodule/capa_base.py @@ -620,12 +620,13 @@ class CapaMixin(ScorableXBlockMixin, CapaFields): html = warning try: html += self.lcp.get_html() - except Exception: + except Exception as error: # Couldn't do it. Give up. log.exception( - u"ProblemGetHtmlError: Unable to generate html from LoncapaProblem: !r, !r", + u"ProblemGetHtmlError: Unable to generate html from LoncapaProblem: %r, %r, %s", problem_display_name, - problem_location + problem_location, + text_type(error) ) raise