From 338a57768fd4e759a0286c4bcd9260d4eec8ad9f Mon Sep 17 00:00:00 2001 From: Vik Paruchuri Date: Tue, 16 Apr 2013 11:01:57 -0400 Subject: [PATCH] Remove try except block for pg scoring --- common/lib/xmodule/xmodule/peer_grading_module.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/lib/xmodule/xmodule/peer_grading_module.py b/common/lib/xmodule/xmodule/peer_grading_module.py index de4922e60a..fc007475dc 100644 --- a/common/lib/xmodule/xmodule/peer_grading_module.py +++ b/common/lib/xmodule/xmodule/peer_grading_module.py @@ -205,13 +205,11 @@ class PeerGradingModule(PeerGradingFields, XModule): #Ensures that once a student receives a final score for peer grading, that it does not change. self.student_data_for_location = response - try: + if self.weight is not None: score = int(count_graded >= count_required and count_graded > 0) * float(self.weight) total = self.max_grade * float(self.weight) score_dict['score'] = score score_dict['total'] = total - except: - pass return score_dict