summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/SConf.py
diff options
context:
space:
mode:
authorLudwig Hähne <pankrat@tigris.org>2008-09-10 16:24:15 (GMT)
committerLudwig Hähne <pankrat@tigris.org>2008-09-10 16:24:15 (GMT)
commit1c280140f557190a9625397bbe9e5a3a540efac5 (patch)
tree481d1b99880d2a2d4bf3470fca80032eaa237597 /src/engine/SCons/SConf.py
parent311e482d13e4bfbcd643e0fb7cdc017ac55b6dc9 (diff)
downloadSCons-1c280140f557190a9625397bbe9e5a3a540efac5.zip
SCons-1c280140f557190a9625397bbe9e5a3a540efac5.tar.gz
SCons-1c280140f557190a9625397bbe9e5a3a540efac5.tar.bz2
Issue 2149: Avoid reference cycles caused by frame objects
Diffstat (limited to 'src/engine/SCons/SConf.py')
-rw-r--r--src/engine/SCons/SConf.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine/SCons/SConf.py b/src/engine/SCons/SConf.py
index b964307..9b3879e 100644
--- a/src/engine/SCons/SConf.py
+++ b/src/engine/SCons/SConf.py
@@ -235,7 +235,9 @@ class SConfBuildTask(SCons.Taskmaster.Task):
raise
elif issubclass(exc_type, SCons.Errors.BuildError):
# we ignore Build Errors (occurs, when a test doesn't pass)
- pass
+ # Clear the exception to prevent the contained traceback
+ # to build a reference cycle.
+ self.exc_clear()
else:
self.display('Caught exception while building "%s":\n' %
self.targets[0])