Skip to content

Commit 619a1ce

Browse files
committed
fixbug
1 parent a1ab358 commit 619a1ce

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

bin/sdns.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import sys, os
77
import signal
88
import time
9+
import socket
910
import threading
1011
from os.path import isfile
1112
sys.path.append('../lib')
@@ -72,6 +73,9 @@ def task(amapping_blacklist, ip_list):
7273
delay = ping(ip, 2)
7374
except socket.gaierror as e:
7475
delay = None
76+
except Exception as e:
77+
logger.exception(e)
78+
continue
7579
if delay == None and ip not in amapping_blacklist:
7680
amapping_blacklist.add(ip)
7781
if delay != None and ip in amapping_blacklist:

0 commit comments

Comments
 (0)