diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2014-07-02 01:33:31 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2014-07-02 01:33:31 (GMT) |
commit | 092b3cf67117b3857f111bdb752e847eebd9e9b6 (patch) | |
tree | a3186ca75d2ea2f9a543253c2ee75b91745f7e2b /Lib/idlelib/StackViewer.py | |
parent | d9de794c232078c1c024aa117e16e7367dafce13 (diff) | |
download | cpython-092b3cf67117b3857f111bdb752e847eebd9e9b6.zip cpython-092b3cf67117b3857f111bdb752e847eebd9e9b6.tar.gz cpython-092b3cf67117b3857f111bdb752e847eebd9e9b6.tar.bz2 |
More idlelib cleanup inspired by pyflakes.
Diffstat (limited to 'Lib/idlelib/StackViewer.py')
-rw-r--r-- | Lib/idlelib/StackViewer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/StackViewer.py b/Lib/idlelib/StackViewer.py index ed2c9e7..b1e5e26 100644 --- a/Lib/idlelib/StackViewer.py +++ b/Lib/idlelib/StackViewer.py @@ -131,8 +131,8 @@ def _stack_viewer(parent): root.geometry("+%d+%d"%(x, y + 150)) flist = PyShellFileList(root) try: # to obtain a traceback object - a - except: + intentional_name_error + except NameError: exc_type, exc_value, exc_tb = sys.exc_info() # inject stack trace to sys |