summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Script/SConscript.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-10-21 12:18:38 (GMT)
committerSteven Knight <knight@baldmt.com>2003-10-21 12:18:38 (GMT)
commit4618fabde17038bd961f93ceb9af6b31e778540b (patch)
tree0c55b5e749ce9acbb8092e92d4d7c0b1a198fff6 /src/engine/SCons/Script/SConscript.py
parent41327e986275b57ad9ff92d402276ffb318e9e7b (diff)
downloadSCons-4618fabde17038bd961f93ceb9af6b31e778540b.zip
SCons-4618fabde17038bd961f93ceb9af6b31e778540b.tar.gz
SCons-4618fabde17038bd961f93ceb9af6b31e778540b.tar.bz2
Better detection of KeyboardInterrupts. (Christoph Wiedemann)
Diffstat (limited to 'src/engine/SCons/Script/SConscript.py')
-rw-r--r--src/engine/SCons/Script/SConscript.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/Script/SConscript.py b/src/engine/SCons/Script/SConscript.py
index 8212061..4c47078 100644
--- a/src/engine/SCons/Script/SConscript.py
+++ b/src/engine/SCons/Script/SConscript.py
@@ -80,7 +80,7 @@ def get_calling_namespaces():
"""Return the locals and globals for the function that called
into this module in the current callstack."""
try: 1/0
- except: frame = sys.exc_info()[2].tb_frame
+ except ZeroDivisionError: frame = sys.exc_info()[2].tb_frame
while frame.f_globals.get("__name__") == __name__: frame = frame.f_back