From 0501e6eba29188e2fa4037a0fc2d6910c52bf161 Mon Sep 17 00:00:00 2001 From: gitolicious <26963495+gitolicious@users.noreply.github.com> Date: Wed, 23 Jun 2021 17:50:48 +0200 Subject: [PATCH] Enhanced Cloudflare log message --- doctoshotgun.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doctoshotgun.py b/doctoshotgun.py index 08e4baf..39491fe 100755 --- a/doctoshotgun.py +++ b/doctoshotgun.py @@ -203,7 +203,7 @@ def do_login(self): except ServerError as e: if e.response.status_code in [503] \ and 'text/html' in e.response.headers['Content-Type'] \ - and 'cloudflare' in e.response.text: + and ('cloudflare' in e.response.text or 'Checking your browser before accessing' in e .response.text): log('Request blocked by CloudFlare', color='red') raise try: