Skip to content

Commit

Permalink
Enhanced Cloudflare log message
Browse files Browse the repository at this point in the history
  • Loading branch information
gitolicious authored and rbignon committed Jun 23, 2021
1 parent 11a9654 commit 44af15d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doctoshotgun.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 44af15d

Please sign in to comment.