excutils.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:deb-oslo.utils 作者: openstack 项目源码 文件源码
def __call__(self, ex):
        """Re-raise any exception value not being filtered out.

        If the exception was the last to be raised, it will be re-raised with
        its original traceback.
        """
        exc_type, exc_val, traceback = sys.exc_info()

        try:
            if not self._should_ignore_ex(ex):
                if exc_val is ex:
                    six.reraise(exc_type, exc_val, traceback)
                else:
                    raise ex
        finally:
            del exc_type, exc_val, traceback
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号