tools.py 文件源码

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

项目:b92statistike 作者: stalker314314 项目源码 文件源码
def exception_hook(exctype, value, tb):
    """
    Catch any unhandled exception and print its stack trace.
    Useful to see what is going on when scrapper crashes.
    """
    logger = logging.getLogger('main')
    logger.critical('{0}: {1}'.format(exctype, value))
    logger.critical(''.join(traceback.format_tb(tb)))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号