mirror of
https://github.com/benbusby/whoogle-search.git
synced 2025-07-09 03:04:13 -04:00
Log rate-limiting errors
Rate limiting is now reported to the console as an error message. Fixes #914
This commit is contained in:
parent
cec10e81d3
commit
aa54491ae0
@ -327,6 +327,7 @@ def search():
|
|||||||
|
|
||||||
# Return 503 if temporarily blocked by captcha
|
# Return 503 if temporarily blocked by captcha
|
||||||
if has_captcha(str(response)):
|
if has_captcha(str(response)):
|
||||||
|
app.logger.error('503 (CAPTCHA)')
|
||||||
return render_template(
|
return render_template(
|
||||||
'error.html',
|
'error.html',
|
||||||
blocked=True,
|
blocked=True,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user