Don't use a string exception since it's deprecated

This commit is contained in:
Neal Norwitz 2005-10-21 06:00:24 +00:00
parent 57071ce545
commit 1e8659b963

View File

@ -64,7 +64,7 @@ _srcfile = os.path.normcase(_srcfile)
def currentframe():
"""Return the frame object for the caller's stack frame."""
try:
raise 'catch me'
raise Exception
except:
return sys.exc_traceback.tb_frame.f_back