From 8270685ac67421ba42ab517967f283b87fe65d9c Mon Sep 17 00:00:00 2001 From: pictuga Date: Mon, 16 Jun 2014 14:03:24 +0200 Subject: [PATCH] Use longer timeout for xml fetching --- morss/morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/morss.py b/morss/morss.py index 66326f2..247dba2 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -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')