From e4e128a70ea7659b95c5edcc713436683d9a2cca Mon Sep 17 00:00:00 2001 From: Andrew Morrow Date: Fri, 19 Jan 2024 16:32:21 -0500 Subject: SConf failed should use cached exception info --- SCons/SConf.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SCons/SConf.py b/SCons/SConf.py index 53666e6..2bc68f1 100644 --- a/SCons/SConf.py +++ b/SCons/SConf.py @@ -253,8 +253,7 @@ class SConfBuildTask(SCons.Taskmaster.AlwaysTask): # ConfigureCacheError and if yes, reraise the exception exc_type = self.exc_info()[0] if issubclass(exc_type, SConfError): - # TODO pylint E0704: bare raise not inside except - raise + raise self.exc_info()[1] 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