Don't use a string exception since it's deprecated
This commit is contained in:
parent
57071ce545
commit
1e8659b963
@ -64,7 +64,7 @@ _srcfile = os.path.normcase(_srcfile)
|
|||||||
def currentframe():
|
def currentframe():
|
||||||
"""Return the frame object for the caller's stack frame."""
|
"""Return the frame object for the caller's stack frame."""
|
||||||
try:
|
try:
|
||||||
raise 'catch me'
|
raise Exception
|
||||||
except:
|
except:
|
||||||
return sys.exc_traceback.tb_frame.f_back
|
return sys.exc_traceback.tb_frame.f_back
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user