Commit f970da6d by Calen Pennington

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

parent 9022c0d6
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment