2024-05-15 15:35:15 +00:00
|
|
|
diff --git a/piptools/scripts/compile.py b/piptools/scripts/compile.py
|
|
|
|
index 195faa7..3e69437 100755
|
|
|
|
--- a/piptools/scripts/compile.py
|
|
|
|
+++ b/piptools/scripts/compile.py
|
|
|
|
@@ -9,7 +9,7 @@ from pathlib import Path
|
|
|
|
from typing import IO, Any, BinaryIO, cast
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
import click
|
|
|
|
-from build import BuildBackendException
|
|
|
|
+from build import BuildException
|
|
|
|
from click.utils import LazyFile, safecall
|
2024-05-15 15:35:15 +00:00
|
|
|
from pip._internal.req import InstallRequirement
|
|
|
|
from pip._internal.req.constructors import install_req_from_line
|
|
|
|
@@ -369,6 +369,6 @@ def cli(
|
|
|
|
isolated=build_isolation,
|
|
|
|
quiet=log.verbosity <= 0,
|
2022-08-12 12:06:08 +00:00
|
|
|
)
|
|
|
|
- except BuildBackendException as e:
|
2024-05-15 15:35:15 +00:00
|
|
|
+ except (BuildException, StopIteration) as e:
|
2022-08-12 12:06:08 +00:00
|
|
|
log.error(str(e))
|
|
|
|
log.error(f"Failed to parse {os.path.abspath(src_file)}")
|
|
|
|
sys.exit(2)
|