format_exc() 实例源码

果果糖 2019-01-21

python Json 模块 random string Socket




def _tcp_proc(self, addrinfo, task=None):
        """
        Internal use only.
        """
        task.set_daemon()
        sock = addrinfo.tcp_sock
        while 1:
            try:
                conn, addr = yield sock.accept()
            except ssl.SSLError as err:
                logger.debug('SSL connection failed: %s', str(err))
                continue
            except GeneratorExit:
                break
            except:
                logger.debug(traceback.format_exc())
                continue
            SysTask(self._tcp_conn_proc, conn, addrinfo)



  原文:http://www.codingdict.com/sources/py/traceback/2706.html

登录 后评论
下一篇
我是小助手
30392人浏览
2019-07-31
相关推荐
Datahub Python SDK入门手册
2760人浏览
2017-02-08 18:23:05
python raid monitor (megacli)
515人浏览
2017-11-12 03:11:00
Python异常信息写日志
478人浏览
2017-11-12 01:48:00
Python IP处理模块IPy(转载)
406人浏览
2018-01-19 15:07:00
Python 参数校验的进化
317人浏览
2018-12-22 12:19:14
和我一起入门python爬虫
921人浏览
2019-03-20 15:04:56
0
0
1
427