From 3418feba521b59db16957bf6f1129c89feb6f5e2 Mon Sep 17 00:00:00 2001 From: Felix Sun Date: Tue, 9 Jul 2013 13:26:02 -0400 Subject: [PATCH] Added error logging for unparsable answers. --- common/lib/xmodule/xmodule/crowdsource_hinter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/common/lib/xmodule/xmodule/crowdsource_hinter.py b/common/lib/xmodule/xmodule/crowdsource_hinter.py index a776e2da60..6b5545aab1 100644 --- a/common/lib/xmodule/xmodule/crowdsource_hinter.py +++ b/common/lib/xmodule/xmodule/crowdsource_hinter.py @@ -144,6 +144,7 @@ class CrowdsourceHinterModule(CrowdsourceHinterFields, XModule): answer = self.capa_answer_to_str(get) except ValueError: # Sometimes, we get an answer that's just not parsable. Do nothing. + log.exception('Answer not parsable: ' + str(get)) return # Look for a hint to give. # Make a local copy of self.hints - this means we only need to do one json unpacking.