We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b245375 commit ab1329fCopy full SHA for ab1329f
1 file changed
openedx_authz/engine/utils.py
@@ -178,7 +178,7 @@ def _validate_migration_input(course_id_list, org_id):
178
"At least one of course_id_list or org_id must be provided to limit the scope of the migration."
179
)
180
181
- if course_id_list and any([course_key for course_key in course_id_list if not course_key.startswith("course-v1:")]):
+ if course_id_list and any(not course_key.startswith("course-v1:") for course_key in course_id_list):
182
raise ValueError(
183
"Only full course keys (e.g., 'course-v1:org+course+run') are supported in the course_id_list."
184
" Other course types such as CCX are not supported."
0 commit comments