From 61e4fbb7507691717b75b8e446624227f492831b Mon Sep 17 00:00:00 2001 From: Jan Kowalleck Date: Thu, 23 Jul 2026 14:54:42 +0200 Subject: [PATCH] fix: improve error message for non-PEP 621 pyproject.toml Signed-off-by: Jan Kowalleck --- cyclonedx_py/_internal/utils/pyproject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyclonedx_py/_internal/utils/pyproject.py b/cyclonedx_py/_internal/utils/pyproject.py index 1f98ab7f..127c0619 100644 --- a/cyclonedx_py/_internal/utils/pyproject.py +++ b/cyclonedx_py/_internal/utils/pyproject.py @@ -64,7 +64,7 @@ def pyproject2component(data: dict[str, Any], *, licenses_fixup(component) # endregion licenses return component - raise ValueError('Unable to build component from pyproject') + raise ValueError('Unable to build component from pyproject: pyproject.toml is not PEP 621-compliant') def pyproject_load(pyproject_file: str) -> dict[str, Any]: