Преглед изворни кода

Update cache exceptions following httpx switch

master
David Larlet пре 4 година
родитељ
комит
9ec27d996b
No known key found for this signature in database
1 измењених фајлова са 1 додато и 5 уклоњено
  1. 1
    5
      cache.py

+ 1
- 5
cache.py Прегледај датотеку

@@ -124,11 +124,7 @@ def new(url):
print(link_line)
try:
title, content = extract_page(url)
except (
requests.adapters.SSLError,
lxml.etree.XMLSyntaxError,
requests.exceptions.ConnectionError,
) as e:
except (lxml.etree.XMLSyntaxError, httpx.exceptions.HTTPError,) as e:
print(f"WARNING: {e}")
title, content = "", ""
cache_path = os.path.join(CACHE_PATH, hash_url)

Loading…
Откажи
Сачувај