def _get_traceback(exc_info=None):
    return '\n'.join(traceback.format_exception(*(exc_info or sys.exc_info())))
Helper function to return the traceback as a string.
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/txcommon/exceptions/__init__.py/_get_traceback