Merge pull request #15229 from edx/efischer/celery_logging

More specific grade_course logging
This commit is contained in:
Eric Fischer
2017-06-01 12:41:01 -04:00
committed by GitHub

View File

@@ -210,7 +210,11 @@ class CourseGradeReport(object):
batched_rows = self._batched_rows(context)
context.update_status(u'Compiling grades')
success_rows, error_rows = self._compile(context, batched_rows)
try:
success_rows, error_rows = self._compile(context, batched_rows)
except Exception: # pylint:disable=broad-except
TASK_LOG.exception('Something failed in compilation')
return context.update_status('Failed grades')
context.update_status(u'Uploading grades')
self._upload(context, success_headers, success_rows, error_headers, error_rows)