~replaceafill/schooltool.cando/cando_fixes

« back to all changes in this revision

Viewing changes to src/schooltool/cando/gradebook.py

  • Committer: Douglas Cerna
  • Date: 2013-01-03 22:37:54 UTC
  • Revision ID: douglascerna@yahoo.com-20130103223754-43pehelfif4av1q0
Fixed multi-term score search when student is not enrolled in previous sections

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
                worksheet = skill.__parent__
195
195
                gradebook = ISkillsGradebook(worksheet, None)
196
196
                if gradebook is not None:
197
 
                    score = gradebook.getScore(student, skill)
 
197
                    try:
 
198
                        score = gradebook.getScore(student, skill)
 
199
                    except (ValueError,):
 
200
                        score = None
198
201
                    if score is not None:
199
202
                        return score
200
203