in awslambdaric/bootstrap.py [0:0]
def build_fault_result(exc_info, msg):
etype, value, tb = exc_info
tb_tuples = extract_traceback(tb)
for i in range(len(tb_tuples)):
if "/bootstrap.py" not in tb_tuples[i][0]: # filename of the tb tuple
tb_tuples = tb_tuples[i:]
break
return make_error(
msg if msg else str(value),
etype.__name__,
traceback.format_list(tb_tuples),
)