print normalize_url_gevent errors

master
Aevann 2023-10-20 18:53:14 +03:00
parent c0efb06860
commit f7353a931a
1 changed files with 3 additions and 1 deletions

View File

@ -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):