Skip to content
Snippets Groups Projects
Commit 9f326ee8 authored by stvn's avatar stvn
Browse files

Skip migration when no LTI XBlock location exists

otherwise this blows up, trying to migrate a record with no location
(the modulestore lookup throws).

Presumably this isn't (wasn't?) an issue in prod already, right?
But I did hit this in my devstack, having previously created an
LtiConfiguration record via Django Admin (without a location).
parent 223860b2
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,8 @@ def forwards_func(apps, schema_editor):
)
with transaction.atomic():
for lti_config in lti_configs:
if not lti_config.location:
continue
block = _load_block(lti_config.location)
# If client_id exists, move it to model
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment