From 804a80bc7cb788a77af169242b84c892ec4fc638 Mon Sep 17 00:00:00 2001 From: H Lohaus Date: Sun, 24 Nov 2024 17:43:45 +0100 Subject: Arm2 (#2414) * Fix arm v7 build / improve api * Update stubs.py * Fix unit tests --- g4f/requests/raise_for_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f/requests') diff --git a/g4f/requests/raise_for_status.py b/g4f/requests/raise_for_status.py index 8625f552..0cd09a2a 100644 --- a/g4f/requests/raise_for_status.py +++ b/g4f/requests/raise_for_status.py @@ -11,7 +11,7 @@ class CloudflareError(ResponseStatusError): ... def is_cloudflare(text: str) -> bool: - if "Generated by cloudfront" in text: + if "Generated by cloudfront" in text or '

' in text: return True elif "Attention Required! | Cloudflare" in text or 'id="cf-cloudflare-status"' in text: return True -- cgit v1.2.3