add logging to course import

This commit is contained in:
Adam Palay
2014-05-02 15:31:08 -04:00
parent ced3f67ab1
commit a35e359482

View File

@@ -238,6 +238,9 @@ def import_handler(request, tag=None, package_id=None, branch=None, version_guid
# Send errors to client with stage at which error occurred.
except Exception as exception: # pylint: disable=W0703
log.exception(
"error importing course at {0}".format(new_location)
)
return JsonResponse(
{
'ErrMsg': str(exception),