Commit 6c557261 by Felix Sun

Fixed naming error in crowdsource_hinter. (Introduced in git merge.)

parent 596e1ead
...@@ -141,10 +141,10 @@ class CrowdsourceHinterModule(CrowdsourceHinterFields, XModule): ...@@ -141,10 +141,10 @@ class CrowdsourceHinterModule(CrowdsourceHinterFields, XModule):
- 'answer' is the parsed answer that was submitted. - 'answer' is the parsed answer that was submitted.
""" """
try: try:
answer = self.capa_answer_to_str(get) answer = self.capa_answer_to_str(data)
except ValueError: except ValueError:
# Sometimes, we get an answer that's just not parsable. Do nothing. # Sometimes, we get an answer that's just not parsable. Do nothing.
log.exception('Answer not parsable: ' + str(get)) log.exception('Answer not parsable: ' + str(data))
return return
# Look for a hint to give. # Look for a hint to give.
# Make a local copy of self.hints - this means we only need to do one json unpacking. # Make a local copy of self.hints - this means we only need to do one json unpacking.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment