Skip to content

Commit 42ddab2

Browse files
committed
destructure rather than repeatedly accessing
1 parent 82cddcf commit 42ddab2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SCons/SConf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,9 @@ def display_cached_string(self, bi) -> None:
251251
def failed(self):
252252
# check, if the reason was a ConfigureDryRunError or a
253253
# ConfigureCacheError and if yes, reraise the exception
254-
exc_type = self.exc_info()[0]
254+
exc_type, exc, _ = self.exc_info()
255255
if issubclass(exc_type, SConfError):
256-
raise self.exc_info()[1]
256+
raise exc
257257
elif issubclass(exc_type, SCons.Errors.BuildError):
258258
# we ignore Build Errors (occurs, when a test doesn't pass)
259259
# Clear the exception to prevent the contained traceback

0 commit comments

Comments
 (0)