def _reraise_translated_exception():
"""Transform the exception but keep its traceback intact."""
# pylint: disable=unused-variable
_exc_type, exc_value, exc_trace = sys.exc_info()
new_exc = _translate_plain_exception(exc_value)
six.reraise(type(new_exc), new_exc, exc_trace)
评论列表
文章目录