Should not raise exception on empty answer.

This commit is contained in:
Alexander Kryklia
2014-01-29 14:24:24 +02:00
parent ce2c067da9
commit 2653e9634a

View File

@@ -949,8 +949,6 @@ class NumericalResponse(LoncapaResponse):
if self.range_tolerance:
if isinstance(student_float, complex):
raise StudentInputError(_(u"You may not use complex numbers in range tolerance problems"))
if isnan(student_float):
raise general_exception
boundaries = []
for inclusion, answer in zip(self.inclusion, self.answer_range):
boundary = self.get_staff_ans(answer)