From 42ddab297309085cbfe104ddbcd32e474796b830 Mon Sep 17 00:00:00 2001 From: Andrew Morrow Date: Tue, 23 Jan 2024 16:31:07 -0500 Subject: destructure rather than repeatedly accessing --- SCons/SConf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SCons/SConf.py b/SCons/SConf.py index 2bc68f1..d2e09be 100644 --- a/SCons/SConf.py +++ b/SCons/SConf.py @@ -251,9 +251,9 @@ class SConfBuildTask(SCons.Taskmaster.AlwaysTask): def failed(self): # check, if the reason was a ConfigureDryRunError or a # ConfigureCacheError and if yes, reraise the exception - exc_type = self.exc_info()[0] + exc_type, exc, _ = self.exc_info() if issubclass(exc_type, SConfError): - raise self.exc_info()[1] + raise exc elif issubclass(exc_type, SCons.Errors.BuildError): # we ignore Build Errors (occurs, when a test doesn't pass) # Clear the exception to prevent the contained traceback -- cgit v0.12