aboutsummaryrefslogtreecommitdiff
path: root/web_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'web_utils.py')
-rw-r--r--web_utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/web_utils.py b/web_utils.py
index 6fecb47..89c6632 100644
--- a/web_utils.py
+++ b/web_utils.py
@@ -50,7 +50,9 @@ def fetch_and_markdownify(url: str) -> FetchResult:
return _cache[url]
try:
- with httpx2.Client(headers={"User-Agent": "Mozilla/5.0"}, timeout=10.0) as client:
+ with httpx2.Client(
+ headers={"User-Agent": "Mozilla/5.0"}, timeout=10.0
+ ) as client:
response = client.get(url)
response.raise_for_status()
html = response.text