change check to see if website is up

This commit is contained in:
2025-10-06 00:42:46 +02:00
parent 0c61ac5319
commit 1ac9496e46
+3 -2
View File
@@ -9,8 +9,9 @@ async def init_uztracker():
global up
global soup
try:
response = requests.get(url_uztracker)
up = True
response = requests.get(url_uztracker, timeout=10)
if response.status_code == 200:
up = True
except requests.exceptions.RequestException as e:
print(f"\nRequest Exception on {url_uztracker}:")
print(e)