Open ohyeah521 opened 10 years ago
同样的问题 2014-08-29 17:50:02,570 ERROR failed to query DNS(qd=[Q(name='www.baidu.com')], id=20177) due to list index out of range Traceback (most recent call last): File "/Users/zhucong/Documents/Github/fqdns/fqdns.py", line 192, in call response = self.query(request, raw_request) File "/Users/zhucong/Documents/Github/fqdns/fqdns.py", line 222, in query answers = self.query_smartly(domain) File "/Users/zhucong/Documents/Github/fqdns/fqdns.py", line 249, in query_smartly first_china_upstream = self.china_upstreams[0] IndexError: list index out of range
启动参数:./fqdns.py serve
def query_smartly(self, domain): first_china_upstream = self.china_upstreams[0] # 这里self.china_upstreams为空,所以程序报异常。