wssclient.py 文件源码

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

项目:python-wss 作者: tripzero 项目源码 文件源码
def _connect_once(self):
        try:
            yield from self._connect()

        except ConnectionRefusedError:
            self.print_debug("connection refused ({})".format(self.address))

        except OSError:
            self.print_debug("connection failed ({})".format(self.address))

        except:
            exc_type, exc_value, exc_traceback = sys.exc_info()
            traceback.print_tb(exc_traceback, limit=1, file=sys.stdout)
            traceback.print_exception(exc_type, exc_value, exc_traceback,
                    file=sys.stdout)
            self.print_debug("connection failed ({})".format(self.address))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号