comment_notifier.py 文件源码

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

项目:duoshuo-comment-notifier 作者: LooEv 项目源码 文件源码
def monitor():
    logger.debug(u'??????...')
    get_config()
    try:
        content = handler()
        if content:
            send_email(content, message_type='comment')
    except Exception as e:
        logger.exception(e)
    else:
        global the_number_of_mistakes
        the_number_of_mistakes = -2
        if not content:
            logger.debug(u'????????')
    finally:
        # ??????????????????????
        logging.shutdown()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号