[FIX] survey: catch exception while quizz mode

This commit is contained in:
Richard Mathot
2014-07-01 15:56:50 +02:00
parent 14fae54863
commit 0b0c1fbdd6
+2
View File
@@ -993,6 +993,8 @@ class survey_user_input_line(osv.Model):
def __get_mark(self, cr, uid, value_suggested, context=None):
try:
mark = self.pool.get('survey.label').browse(cr, uid, int(value_suggested), context=context).quizz_mark
except AttributeError:
mark = 0.0
except KeyError:
mark = 0.0
except ValueError: