ソースを参照

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)

読み込み中…
キャンセル
保存