Merge pull request #7007 from rohitwaghchaure/errprint_not_working

fix: errprint not working
This commit is contained in:
Rushabh Mehta 2019-03-01 09:08:31 +05:30 committed by GitHub
commit f0ff4fb6bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -202,6 +202,7 @@ def get_error_snapshot_path():
def get_frame_locals():
traceback = sys.exc_info()[2]
frames = []
if traceback:
frames = inspect.getinnerframes(traceback, context=0)
_locals = ['Locals (most recent call last):']