Merge pull request #864 from MITx/bug/lyla/numericalresponse

quick bug fix
This commit is contained in:
Calen Pennington
2012-10-11 09:17:57 -07:00

View File

@@ -710,7 +710,7 @@ class NumericalResponse(LoncapaResponse):
id=xml.get('id'))[0]
self.tolerance = contextualize_text(self.tolerance_xml, context)
except Exception:
self.tolerance = 0
self.tolerance = '0'
try:
self.answer_id = xml.xpath('//*[@id=$id]//textline/@id',
id=xml.get('id'))[0]