Scrapy, a fast high-level web crawling & scraping framework for Python.
py3 fix for rfc1123_to_epoch - "except Exception" was hiding bytes/str error
Konstantin Lopuhinb0648271d69f
diff --git a/scrapy/extensions/httpcache.py b/scrapy/extensions/httpcache.pyindex 91b3ef262..03ea88a10 100644--- a/scrapy/extensions/httpcache.py+++ b/scrapy/extensions/httpcache.py@@ -12,7 +12,7 @@ from scrapy.responsetypes import responsetypesfrom scrapy.utils.request import request_fingerprintfrom scrapy.utils.project import data_pathfrom scrapy.utils.httpobj import urlparse_cached-from scrapy.utils.python import to_bytes+from scrapy.utils.python import to_bytes, to_unicodeclass DummyPolicy(object):@@ -423,6 +423,7 @@ def parse_cachecontrol(header):def rfc1123_to_epoch(date_str):try:+ date_str = to_unicode(date_str, encoding='ascii')return mktime_tz(parsedate_tz(date_str))except Exception:return None