Tweak blacklist
This commit is contained in:
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):
|
||||||
|
Reference in New Issue
Block a user