fix check to see if website is up

This commit is contained in:
2025-10-06 00:55:25 +02:00
parent 1ac9496e46
commit 6a12cb4314
+3
View File
@@ -12,6 +12,9 @@ async def init_uztracker():
response = requests.get(url_uztracker, timeout=10)
if response.status_code == 200:
up = True
else:
up = False
print(f"Rutracker seems down, status code: {response.status_code}")
except requests.exceptions.RequestException as e:
print(f"\nRequest Exception on {url_uztracker}:")
print(e)