Use longer timeout for xml fetching

master
pictuga 2014-06-16 14:03:24 +02:00
parent 0e3751c712
commit 8270685ac6
1 changed files with 1 additions and 1 deletions

View File

@ -508,7 +508,7 @@ def Fetch(url, cache, options):
else:
try:
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()
except (IOError, httplib.HTTPException):
raise MorssException('Error downloading feed')