Make saving also save the children in the #sortable element (TODO: name the #sortable element better)

This commit is contained in:
Calen Pennington
2012-09-18 13:19:30 -04:00
parent c1ce5a87ac
commit bb06a926bb
4 changed files with 28 additions and 10 deletions

View File

@@ -86,7 +86,12 @@ def export_to_github(course, commit_message, author_str=None):
If author_str is specified, uses it in the commit.
'''
course_dir = course.metadata.get('data_dir', course.location.course)
repo_settings = load_repo_settings(course_dir)
try:
repo_settings = load_repo_settings(course_dir)
except InvalidRepo:
log.warning("Invalid repo {0}, not exporting data to xml".format(course_dir))
return
git_repo = setup_repo(repo_settings)
fs = OSFS(git_repo.working_dir)