diff options
author | Steven Knight <knight@baldmt.com> | 2003-10-21 12:18:38 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-10-21 12:18:38 (GMT) |
commit | 4618fabde17038bd961f93ceb9af6b31e778540b (patch) | |
tree | 0c55b5e749ce9acbb8092e92d4d7c0b1a198fff6 /src/engine/SCons/Script/SConscript.py | |
parent | 41327e986275b57ad9ff92d402276ffb318e9e7b (diff) | |
download | SCons-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.py | 2 |
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 |