Fix issue where import didn't work if no grading policy file existed
This commit is contained in:
@@ -168,7 +168,7 @@ class CourseDescriptor(SequenceDescriptor):
|
|||||||
def read_grading_policy(cls, paths, system):
|
def read_grading_policy(cls, paths, system):
|
||||||
"""Load a grading policy from the specified paths, in order, if it exists."""
|
"""Load a grading policy from the specified paths, in order, if it exists."""
|
||||||
# Default to a blank policy
|
# Default to a blank policy
|
||||||
policy_str = ""
|
policy_str = '""'
|
||||||
|
|
||||||
for policy_path in paths:
|
for policy_path in paths:
|
||||||
if not system.resources_fs.exists(policy_path):
|
if not system.resources_fs.exists(policy_path):
|
||||||
|
|||||||
Reference in New Issue
Block a user