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
+2 -1
View File
@@ -9,7 +9,8 @@ async def init_uztracker():
global up global up
global soup global soup
try: try:
response = requests.get(url_uztracker) response = requests.get(url_uztracker, timeout=10)
if response.status_code == 200:
up = True up = True
except requests.exceptions.RequestException as e: except requests.exceptions.RequestException as e:
print(f"\nRequest Exception on {url_uztracker}:") print(f"\nRequest Exception on {url_uztracker}:")