From f7353a931af0562542846fb6b4d80af33c1b1c4a Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 20 Oct 2023 18:53:14 +0300 Subject: [PATCH] print normalize_url_gevent errors --- files/helpers/sanitize.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index b4dd020b6..d2f383669 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -801,7 +801,9 @@ def normalize_url(url): def normalize_url_gevent(url): try: url = requests.get(url, headers=HEADERS, timeout=2, proxies=proxies).url - except: return url + except Exception as e: + print(f"{url}: {e}", flush=True) + return url return normalize_url(url) def validate_css(css):