1 diff --color -ru a/piptools/scripts/compile.py b/piptools/scripts/compile.py
2 --- a/piptools/scripts/compile.py 2022-06-30 11:24:26.000000000 +0200
3 +++ b/piptools/scripts/compile.py 2022-08-01 13:40:58.392515765 +0200
5 from typing import IO, Any, BinaryIO, List, Optional, Tuple, Union, cast
8 -from build import BuildBackendException
9 +from build import BuildException
10 from build.util import project_wheel_metadata
11 from click.utils import LazyFile, safecall
12 from pip._internal.commands import create_command
14 metadata = project_wheel_metadata(
15 os.path.dirname(os.path.abspath(src_file))
17 - except BuildBackendException as e:
18 + except (BuildException,StopIteration) as e:
20 log.error(f"Failed to parse {os.path.abspath(src_file)}")