Fix issue where import didn't work if no grading policy file existed

This commit is contained in:
Calen Pennington
2012-10-24 15:51:43 -04:00
parent 9022c0d661
commit f970da6da2

View File

@@ -168,7 +168,7 @@ class CourseDescriptor(SequenceDescriptor):
def read_grading_policy(cls, paths, system):
"""Load a grading policy from the specified paths, in order, if it exists."""
# Default to a blank policy
policy_str = ""
policy_str = '""'
for policy_path in paths:
if not system.resources_fs.exists(policy_path):