1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-01-22 12:34:17 +00:00

py-i2phosts-fetcher: add debug message

This commit is contained in:
Hidden Z 2010-10-30 17:59:57 +00:00
parent af60e019f8
commit 802c79b156

View File

@ -75,6 +75,7 @@ for source in config['sources']:
# prevent redownloading of hosts-file by passing If-Modified-Since http header
opener.addheaders = [('If-Modified-Since', last_modified)]
try:
log.debug('fetching hosts from: %s', source_hostname)
resp = opener.open(source, timeout=60)
except urllib2.URLError, e:
if hasattr(e, 'reason'):