mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Tweak blacklist
This commit is contained in:
parent
f9195bac80
commit
ace2575cf9
1 changed files with 5 additions and 1 deletions
4
app.py
4
app.py
|
@ -129,7 +129,11 @@ H2T.ignore_images = True
|
||||||
|
|
||||||
|
|
||||||
def is_blacklisted(url: str) -> bool:
|
def is_blacklisted(url: str) -> bool:
|
||||||
|
try:
|
||||||
return urlparse(url).netloc in BLACKLIST
|
return urlparse(url).netloc in BLACKLIST
|
||||||
|
except Exception:
|
||||||
|
logger.exception(f"failed to blacklist for {url}")
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
def verify_pass(pwd):
|
def verify_pass(pwd):
|
||||||
|
|
Loading…
Reference in a new issue