Skip to content

Commit 8048c22

Browse files
committed
fix: handle unsupported waffle flag instances in course authoring migration
1 parent 3d4aaaa commit 8048c22

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

openedx_authz/handlers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ def trigger_course_authoring_migration(
172172
filter_kwargs["org"] = instance.org
173173
org_id = scope_key
174174
scope_type = ScopeType.ORG
175+
else:
176+
logger.error("Unsupported waffle flag instance: %s", instance)
177+
return
175178

176179
prev_record = sender.objects.filter(**filter_kwargs).exclude(id=instance.id).order_by("-change_date").first()
177180

0 commit comments

Comments
 (0)