Merge "Handle html log annotations."
This commit is contained in:
commit
738acae92c
@ -123,6 +123,8 @@ class LogRetriever(threading.Thread):
|
|||||||
try:
|
try:
|
||||||
logging.debug("Retrieving: " + source_url)
|
logging.debug("Retrieving: " + source_url)
|
||||||
r = urllib2.urlopen(source_url)
|
r = urllib2.urlopen(source_url)
|
||||||
|
if 'gzip' in r.info().get('Content-Type', ''):
|
||||||
|
gzipped = True
|
||||||
except urllib2.URLError:
|
except urllib2.URLError:
|
||||||
try:
|
try:
|
||||||
logging.debug("Retrieving: " + source_url + ".gz")
|
logging.debug("Retrieving: " + source_url + ".gz")
|
||||||
|
Loading…
Reference in New Issue
Block a user