Skip to content
Snippets Groups Projects
Unverified Commit 0e4571a5 authored by Awais Jibran's avatar Awais Jibran Committed by GitHub
Browse files

Do not monitor if asset file is not present (#27106)

parent c67c401f
No related branches found
Tags release-2018-10-29-12.45
No related merge requests found
......@@ -355,10 +355,8 @@ class ImportManager:
asset_md = AssetMetadata(asset_key)
asset_md.from_xml(asset)
all_assets.append(asset_md)
except OSError as os_exc:
msg = f'No {assets_filename} file is present with asset metadata.'
logging.error(f'Course import {course_id}: {msg}')
monitor_import_failure(course_id, 'Updating', msg, os_exc)
except OSError:
logging.error(f'Course import {course_id}: No {assets_filename} file present.')
return
except Exception as exc: # pylint: disable=W0703
monitor_import_failure(course_id, 'Updating', exception=exc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment