Skip to content

Commit 392cb6e

Browse files
Use format_tb to return a list of strings
1 parent bb14500 commit 392cb6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lambda_local/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def execute(func, event, context):
124124
err = sys.exc_info()
125125
result = json.dumps({
126126
"errorMessage": str(err[1]),
127-
"stackTrace": traceback.format_exc(),
127+
"stackTrace": traceback.format_tb(err[2]),
128128
"errorType": err[0].__name__
129129
}, indent=4, separators=(',', ': '))
130130
err_type = ERR_TYPE_EXCEPTION

0 commit comments

Comments
 (0)