From 8f3fbee0d8a4ca69af72dae989ae8954181d0108 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Tue, 19 Nov 2024 15:26:03 +0100 Subject: Add show log option to gui --- g4f/requests/raise_for_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f/requests/raise_for_status.py') diff --git a/g4f/requests/raise_for_status.py b/g4f/requests/raise_for_status.py index 1699d9a4..fe262f34 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 "Attention Required! | Cloudflare" in text: + if "Attention Required! | Cloudflare" in text or 'id="cf-cloudflare-status"' in text: return True return '
' in text or "Just a moment..." in text -- cgit v1.2.3