From cc41facc79abd790b2b15a3967e05a164abffd45 Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Sun, 8 Feb 2026 19:48:44 -0600 Subject: [PATCH] Discard changes to autogpt_platform/backend/backend/api/features/store/content_handlers.py --- .../backend/api/features/store/content_handlers.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/autogpt_platform/backend/backend/api/features/store/content_handlers.py b/autogpt_platform/backend/backend/api/features/store/content_handlers.py index 3a0bcbbbaf..cbbdcfbebf 100644 --- a/autogpt_platform/backend/backend/api/features/store/content_handlers.py +++ b/autogpt_platform/backend/backend/api/features/store/content_handlers.py @@ -254,13 +254,11 @@ class BlockHandler(ContentHandler): all_blocks = get_blocks() # Filter out disabled blocks - they're not indexed - enabled_block_ids = [] - for block_id, block_cls in all_blocks.items(): - try: - if not block_cls().disabled: - enabled_block_ids.append(block_id) - except Exception as e: - logger.warning(f"Failed to instantiate block {block_id}: {e}") + enabled_block_ids = [ + block_id + for block_id, block_cls in all_blocks.items() + if not block_cls().disabled + ] total_blocks = len(enabled_block_ids) if total_blocks == 0: