Use longer timeout for xml fetching
parent
0e3751c712
commit
8270685ac6
|
@ -508,7 +508,7 @@ def Fetch(url, cache, options):
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
opener = SimpleDownload(cache.get(url), cache.get('etag'), cache.get('lastmodified'), accept=('xml','html'))
|
opener = SimpleDownload(cache.get(url), cache.get('etag'), cache.get('lastmodified'), accept=('xml','html'))
|
||||||
con = urllib2.build_opener(opener).open(url, timeout=TIMEOUT)
|
con = urllib2.build_opener(opener).open(url, timeout=TIMEOUT*2)
|
||||||
xml = con.read()
|
xml = con.read()
|
||||||
except (IOError, httplib.HTTPException):
|
except (IOError, httplib.HTTPException):
|
||||||
raise MorssException('Error downloading feed')
|
raise MorssException('Error downloading feed')
|
||||||
|
|
Loading…
Reference in New Issue