Scrapy, a fast high-level web crawling & scraping framework for Python.
Add exception to catch
Eugenio Lacuestab0368228d7f6
diff --git a/scrapy/core/downloader/handlers/http11.py b/scrapy/core/downloader/handlers/http11.pyindex c7553eb87..a0fd837b1 100644--- a/scrapy/core/downloader/handlers/http11.py+++ b/scrapy/core/downloader/handlers/http11.py@@ -437,7 +437,7 @@ class ScrapyAgent:try:version = result["txresponse"].versionprotocol = f"{to_unicode(version[0])}/{version[1]}.{version[2]}"- except (AttributeError, TypeError):+ except (AttributeError, TypeError, IndexError):protocol = Noneresponse = respcls(url=url,