Skip to content

Commit d0bfe77

Browse files
authored
Merge pull request lightspeed-core#2549 from tisnik/lcore-3507
LCORE-3507 - Do not catch blind exception: Exception src/utils/vector_search.py:625:12
2 parents 16520b6 + d88a126 commit d0bfe77

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/utils/vector_search.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,9 @@ async def _fetch_okp_rag( # pylint: disable=too-many-locals
641641
len(rag_chunks),
642642
)
643643

644-
except Exception as e: # pylint: disable=broad-exception-caught
644+
except (
645+
Exception # pylint: disable=broad-exception-caught
646+
) as e: # noqa: BLE001 RUF100
645647
logger.warning("Failed to query OKP for chunks: %s", e)
646648
logger.debug("OKP query error details: %s", traceback.format_exc())
647649

0 commit comments

Comments
 (0)