Skip to content

Commit 5804ce4

Browse files
committed
fix: use Ecosystem enum value in SerpApi query
Signed-off-by: Vladimir Belousov <vbelouso@redhat.com>
1 parent 706d352 commit 5804ce4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vuln_analysis/utils/function_name_locator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ async def quick_standard_lib_check(package_name: str, ecosystem: Ecosystem) -> b
291291
"""
292292

293293
search = MorpheusSerpAPIWrapper(max_retries=2)
294-
result = await search.arun(f"Is '{package_name}' part of the {ecosystem} standard library?")
294+
result = await search.arun(f"Is '{package_name}' part of the {ecosystem.value} standard library?")
295295
logger.info("quick_standard_lib_check Standard library check result: %s", result)
296296
# Normalize result: if list, join into single string
297297
if isinstance(result, list):

0 commit comments

Comments
 (0)