add logging to course import
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user