If we can't parse policy, then set it to an empty dictionary
This commit is contained in:
@@ -342,7 +342,7 @@ class CourseDescriptor(SequenceDescriptor):
|
||||
policy = json.loads(cls.read_grading_policy(paths, system))
|
||||
except ValueError:
|
||||
system.error_tracker("Unable to decode grading policy as json")
|
||||
policy = None
|
||||
policy = {}
|
||||
|
||||
# cdodge: import the grading policy information that is on disk and put into the
|
||||
# descriptor 'definition' bucket as a dictionary so that it is persisted in the DB
|
||||
|
||||
Reference in New Issue
Block a user