[clang][scan-build-py] Fix configure scripts when using Python 3.14 (#206792)

Python 3.14 (PEP 765) warns about return statements inside finally
blocks. This warning breaks intercept-build and friends for configure
scripts.

The bare except already catches everything, so falling through to the
return is equivalent and silences the SyntaxWarning.
This commit is contained in:
Michiel Derhaeg authored and GitHub committed 2026-07-10 11:38:53 +01:00
1 parent 95cfe69f75
commit cd662a7c4f
1 file changed
+2 -3
@@ -196,9 +196,8 @@ def compiler_wrapper(function):
function(result, call)
except:
logging.exception("Compiler wrapper failed complete.")
finally:
# Always return the real compiler exit code.
return result
# Always return the real compiler exit code.
return result
def wrapper_environment(args):