From eb47aac6f1ed155ba2cda147f862f3d11e13674d Mon Sep 17 00:00:00 2001 From: pictuga Date: Thu, 25 Nov 2021 22:13:38 +0100 Subject: [PATCH] morss: respect timeout settings in all cases Special treatment of feed fetch not justified and not documented --- morss/morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/morss.py b/morss/morss.py index 461e10d..4c04243 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -275,7 +275,7 @@ def FeedFetch(url, options): policy = None try: - req = crawler.adv_get(url=url, post=options.post, follow=('rss' if not options.items else None), policy=policy, force_min=5*60, force_max=60*60, timeout=TIMEOUT * 2) + req = crawler.adv_get(url=url, post=options.post, follow=('rss' if not options.items else None), policy=policy, force_min=5*60, force_max=60*60, timeout=TIMEOUT) except (IOError, HTTPException): raise MorssException('Error downloading feed')