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():
|
||||
"""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
|
||||
|
||||
|
|
Loading…
Reference in New Issue