matrix.py 文件源码

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

项目:gelyung 作者: denglj 项目源码 文件源码
def get_instances(matrix_api=None):
    """
    ?????matrix?API?????????
    ??????????????????
    """
    try:
        #  response = yield httpclient.AsyncHTTPClient().fetch(MATRIX_API_GET_INSTANCES)
        # handle matrix response here

        # ????????????matrix??
        conf = yaml.safe_load(open(ALERT_CONF))
        instances = conf['instances']
    except Exception as e:
        logging.error(e, exc_info=True)
        raise gen.Return([])
    raise gen.Return(instances)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号