Ver código fonte

Update cache exceptions following httpx switch

master
David Larlet 4 anos atrás
pai
commit
9ec27d996b
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados
1 arquivos alterados com 1 adições e 5 exclusões
  1. 1
    5
      cache.py

+ 1
- 5
cache.py Ver arquivo

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

Carregando…
Cancelar
Salvar