Tweak blacklist

master
Thomas Sileo 2019-07-21 23:39:12 +02:00
rodzic f9195bac80
commit ace2575cf9
1 zmienionych plików z 5 dodań i 1 usunięć

6
app.py
Wyświetl plik

@ -129,7 +129,11 @@ H2T.ignore_images = True
def is_blacklisted(url: str) -> bool:
return urlparse(url).netloc in BLACKLIST
try:
return urlparse(url).netloc in BLACKLIST
except Exception:
logger.exception(f"failed to blacklist for {url}")
return False
def verify_pass(pwd):