mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-03 17:39:42 +02:00
change check to see if website is up
This commit is contained in:
@@ -9,8 +9,9 @@ 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)
|
||||||
up = True
|
if response.status_code == 200:
|
||||||
|
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}:")
|
||||||
print(e)
|
print(e)
|
||||||
|
|||||||
Reference in New Issue
Block a user