search: match by tag; add: handle ssl errors with manual entry
This commit is contained in:
parent
613e43e925
commit
1962e3e1b6
2 changed files with 18 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ def handle_add_submit(body):
|
|||
|
||||
except Exception as e:
|
||||
error_msg = str(e).lower()
|
||||
if "block" in error_msg or "cloudflare" in error_msg or "403" in error_msg:
|
||||
if any(x in error_msg for x in ("block", "cloudflare", "403", "ssl", "handshake", "max retries", "timeout", "connection")):
|
||||
return _respond(
|
||||
f"<h1>add url (manual entry)</h1>"
|
||||
f"<p><strong>{esc(url)}</strong> blocks automated access. "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue