Commit c608c6bd by Brandon DeRosier Committed by Brandon DeRosier

Fix library error dialog link in Import/Export API

parent 3ff34455
......@@ -155,7 +155,7 @@ def export_handler(request, course_key_string):
"unit": unit,
"failed_module": failed_module,
"edit_unit_url": edit_unit_url,
"course_home_url": successful_url,
"courselike_home_url": successful_url,
"raw_err_msg": error_message,
"library": library
})
......
......@@ -231,9 +231,9 @@ class FullCourseImportExport(APIView):
"error": True,
"error_message": str(exc),
"failed_module":
str(failed_item.location) if failed_item else None,
str(failed_item.location) if failed_item else "",
"unit":
str(unit.location) if unit else None
str(unit.location) if unit else ""
},
redirect_url=redirect_url
)
......@@ -247,7 +247,7 @@ class FullCourseImportExport(APIView):
"context_course": courselike_module.url_name,
"error": True,
"error_message": str(exc),
"unit": None
"unit": ""
},
redirect_url=redirect_url
)
......
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