We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a128fca commit 6276d22Copy full SHA for 6276d22
ddns
@@ -264,8 +264,11 @@ def _getip(domain):
264
]
265
result = Queue()
266
def _fetch(url):
267
- result.put(urlopen(Request(url, headers={'user-agent':'curl/7.53'}), timeout=5))
268
- logging.info('getip() from %r', url)
+ try:
+ result.put(urlopen(Request(url, headers={'user-agent':'curl/7.53'}), timeout=5))
269
+ logging.info('getip() from %r', url)
270
+ except Exception as e:
271
+ logging.exception('getip() from %r error: %s', url, e)
272
for url in urls:
273
t = threading.Thread(target=_fetch, args=(url,))
274
t.setDaemon(True)
0 commit comments