We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1ab358 commit 619a1ceCopy full SHA for 619a1ce
1 file changed
bin/sdns.py
@@ -6,6 +6,7 @@
6
import sys, os
7
import signal
8
import time
9
+import socket
10
import threading
11
from os.path import isfile
12
sys.path.append('../lib')
@@ -72,6 +73,9 @@ def task(amapping_blacklist, ip_list):
72
73
delay = ping(ip, 2)
74
except socket.gaierror as e:
75
delay = None
76
+ except Exception as e:
77
+ logger.exception(e)
78
+ continue
79
if delay == None and ip not in amapping_blacklist:
80
amapping_blacklist.add(ip)
81
if delay != None and ip in amapping_blacklist:
0 commit comments