Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
0e4571a5
Unverified
Commit
0e4571a5
authored
4 years ago
by
Awais Jibran
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Do not monitor if asset file is not present (#27106)
parent
c67c401f
No related branches found
Branches containing commit
Tags
release-2018-10-29-12.45
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/lib/xmodule/xmodule/modulestore/xml_importer.py
+2
-4
2 additions, 4 deletions
common/lib/xmodule/xmodule/modulestore/xml_importer.py
with
2 additions
and
4 deletions
common/lib/xmodule/xmodule/modulestore/xml_importer.py
+
2
−
4
View file @
0e4571a5
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment