浏览代码

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)

正在加载...
取消
保存