Address comments in the doc (#27240)

This commit is contained in:
Awais Jibran
2021-04-05 17:06:36 +05:00
committed by GitHub
parent a86b474931
commit bc8e21d340

View File

@@ -363,10 +363,10 @@ class ImportManager:
return
except Exception as exc: # pylint: disable=W0703
monitor_import_failure(course_id, 'Updating', exception=exc)
logging.exception(f'Course import {course_id}: Error while parsing asset xml.')
logging.exception(f'Course import {course_id}: Error while parsing {assets_filename}.')
if self.raise_on_failure: # lint-amnesty, pylint: disable=no-else-raise
if self.status:
self.status.fail(_('Error while parsing xml for {}').format(assets_filename))
self.status.fail(_('Error while reading {}. Check file for XML errors.').format(assets_filename))
raise
else:
return