From ef8b03b07c730a63c4439525f6780e7df816f1e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20Ch=C3=A1vez?= Date: Thu, 12 Feb 2026 12:18:20 -0500 Subject: [PATCH] fix: Typo in unsupported reason message in content libraries [FC-0114] (#38005) - Fix a simple typo in an unsupported reason message for blocks with children in content libraries --- cms/djangoapps/modulestore_migrator/tests/test_tasks.py | 4 ++-- openedx/core/djangoapps/content_libraries/api/blocks.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cms/djangoapps/modulestore_migrator/tests/test_tasks.py b/cms/djangoapps/modulestore_migrator/tests/test_tasks.py index 7bb9b7fcf5..6c68d1944f 100644 --- a/cms/djangoapps/modulestore_migrator/tests/test_tasks.py +++ b/cms/djangoapps/modulestore_migrator/tests/test_tasks.py @@ -257,7 +257,7 @@ class TestMigrateFromModulestore(ModuleStoreTestCase): self.course.id.make_usage_key('library_content', 'test_library_content'), None, 'The "library_content" XBlock (ID: "test_library_content") has children, ' - 'so it not supported in content libraries. It has 2 children blocks.', + 'so it is not supported in content libraries. It has 2 children blocks.', ), ) self.assertEqual(len(result.children), 0) @@ -394,7 +394,7 @@ class TestMigrateFromModulestore(ModuleStoreTestCase): self.assertEqual( reason, 'The "library_content" XBlock (ID: "test_library_content") has children,' - ' so it not supported in content libraries.', + ' so it is not supported in content libraries.', ) def test_migrate_component_with_static_content(self): diff --git a/openedx/core/djangoapps/content_libraries/api/blocks.py b/openedx/core/djangoapps/content_libraries/api/blocks.py index 4cf46627d1..b92e7a8320 100644 --- a/openedx/core/djangoapps/content_libraries/api/blocks.py +++ b/openedx/core/djangoapps/content_libraries/api/blocks.py @@ -310,7 +310,8 @@ def validate_can_add_block_to_library( if block_class.has_children: raise IncompatibleTypesError( _( - 'The "{block_type}" XBlock (ID: "{block_id}") has children, so it not supported in content libraries.' + 'The "{block_type}" XBlock (ID: "{block_id}") has children,' + ' so it is not supported in content libraries.' ).format(block_type=block_type, block_id=block_id) ) # Make sure the new ID is not taken already: