瀏覽代碼

Update cache exceptions following httpx switch

master
David Larlet 4 年之前
父節點
當前提交
9ec27d996b
沒有發現已知的金鑰在資料庫的簽署中
共有 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…
取消
儲存