def report_traceback():
    try:
        formatted_lines = traceback.format_exc()
        now = time.time()
        return formatted_lines, now
    except AttributeError:
        return None, None
Reports a timestamp and full traceback for a given exception.
dataset/ETHPy150Open openstack/python-swiftclient/swiftclient/utils.py/report_traceback