@@ -296,9 +296,7 @@ async def _query_store_for_byok_rag( # pylint: disable=too-many-arguments,too-m
296296 },
297297 )
298298 return _extract_byok_rag_chunks (search_response , vector_store_id , weight )
299- except (
300- Exception # pylint: disable=broad-exception-caught # noqa: BLE001
301- ) as e :
299+ except Exception as e : # pylint: disable=broad-exception-caught # noqa: BLE001
302300 logger .warning ("Failed to search '%s': %s" , vector_store_id , e )
303301 return []
304302
@@ -569,9 +567,7 @@ async def _fetch_byok_rag( # pylint: disable=too-many-locals
569567 # Extract referenced documents from BYOK RAG chunks (now with resolved sources)
570568 referenced_documents = _process_byok_rag_chunks_for_documents (top_results )
571569
572- except (
573- Exception # pylint: disable=broad-exception-caught # noqa: BLE001
574- ) as e :
570+ except Exception as e : # pylint: disable=broad-exception-caught # noqa: BLE001
575571 logger .warning ("Failed to perform BYOK RAG search: %s" , e )
576572 logger .debug ("BYOK RAG error details: %s" , traceback .format_exc ())
577573
@@ -640,9 +636,7 @@ async def _fetch_okp_rag( # pylint: disable=too-many-locals
640636 )
641637 logger .debug ("OKP RAG returned %d chunks" , len (rag_chunks ))
642638
643- except (
644- Exception # pylint: disable=broad-exception-caught # noqa: BLE001
645- ) as e :
639+ except Exception as e : # pylint: disable=broad-exception-caught # noqa: BLE001
646640 logger .warning ("Failed to query OKP for chunks: %s" , e )
647641 logger .debug ("OKP query error details: %s" , traceback .format_exc ())
648642
0 commit comments