Parcourir la source

Update cache exceptions following httpx switch

master
David Larlet il y a 4 ans
Parent
révision
9ec27d996b
Aucune clé connue n'a été trouvée dans la base pour cette signature
1 fichiers modifiés avec 1 ajouts et 5 suppressions
  1. 1
    5
      cache.py

+ 1
- 5
cache.py Voir le fichier

@@ -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)

Chargement…
Annuler
Enregistrer