commit | a959a36288120863f2122ac1c226ee965efcec97 | [log] [tgz] |
---|---|---|
author | Skip Montanaro <skip@pobox.com> | Mon Mar 25 21:37:54 2002 +0000 |
committer | Skip Montanaro <skip@pobox.com> | Mon Mar 25 21:37:54 2002 +0000 |
tree | af6181152a6d67553914867213e5df648dbaa377 | |
parent | 2358425146fac7790135f4644f8fa1d7359041f7 [diff] [blame] |
tighten up unqualified except in currentframe() see bug 411881
diff --git a/Lib/inspect.py b/Lib/inspect.py index e4f6b57..175f5d6 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py
@@ -762,8 +762,8 @@ def currentframe(): """Return the frame object for the caller's stack frame.""" try: - raise 'catch me' - except: + 1/0 + except ZeroDivisionError: return sys.exc_traceback.tb_frame.f_back if hasattr(sys, '_getframe'): currentframe = sys._getframe