diff options
| author | Joel Kronqvist <joel.kronqvist@iki.fi> | 2026-10-13 01:06:57 +0300 |
|---|---|---|
| committer | Joel Kronqvist <joel.kronqvist@iki.fi> | 2026-10-13 01:51:33 +0300 |
| commit | 94ac1e1b1df4ed6dbdf2f0f0d41cb6dce747cbf3 (patch) | |
| tree | 644ae6d91562b2d5c16ac8d62c707c012514ee81 /web_utils.py | |
| parent | 4d6f0330dd4648b2ae4385d08a58a8a78fb50b29 (diff) | |
| download | agent-94ac1e1b1df4ed6dbdf2f0f0d41cb6dce747cbf3.tar.gz agent-94ac1e1b1df4ed6dbdf2f0f0d41cb6dce747cbf3.zip | |
Diffstat (limited to 'web_utils.py')
| -rw-r--r-- | web_utils.py | 4 |
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 |
