diff --git a/mesonbuild/ast/introspection.py b/mesonbuild/ast/introspection.py index 046c0a2b69fd..16e7ac7a5324 100644 --- a/mesonbuild/ast/introspection.py +++ b/mesonbuild/ast/introspection.py @@ -143,7 +143,7 @@ def do_subproject(self, dirname: SubProject) -> None: subi.project_data['name'] = dirname self.project_data['subprojects'] += [subi.project_data] except (mesonlib.MesonException, RuntimeError): - return + pass def func_add_languages(self, node: BaseNode, args: T.List[TYPE_var], kwargs: T.Dict[str, TYPE_var]) -> None: kwargs = self.flatten_kwargs(kwargs) diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py index b255813b60b9..6d7cf3cf5a59 100644 --- a/mesonbuild/dependencies/misc.py +++ b/mesonbuild/dependencies/misc.py @@ -422,7 +422,6 @@ def __init__(self, name: str, env: 'Environment', kwargs: T.Dict[str, T.Any]): if self.static: if not self._add_sub_dependency(iconv_factory(env, self.for_machine, {'static': True})): self.is_found = False - return class OpensslSystemDependency(SystemDependency):