slack_archive.py 文件源码

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

项目:slag 作者: n8v-guy 项目源码 文件源码
def _fetch_person_ims_history(self, user_info, api_handle):
        try:
            ims = api_handle.im.list().body
            SlackArchive.api_call_delay()
        except Error as err:
            self.mongo.db.z_errors.insert_one({'_id': time.time(),
                                               'ctx': ('fetch_person_ims ' +
                                                       user_info['login']),
                                               'msg': str(err)})
            self.log.exception('Fetch person groups error %s', str(err))
            return
        api_loader = functools.partial(api_handle.im.history,
                                       inclusive=0, count=1000)
        self._fetch_stream_messages(api_loader, ims['ims'])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号