Set OwlBoard connection check timeout to 10s

This commit is contained in:
Fred Boniface 2024-10-03 11:54:28 +01:00
parent 87cbd484ce
commit 31f1495833

View File

@ -25,7 +25,7 @@ def check_connection():
print("'DGP_OB_UUID' must be set in the environment")
return False
res = requests.get(OB_TEST_URL, headers=HEADERS)
res = requests.get(OB_TEST_URL, headers=HEADERS, timeout=10)
if res.status_code == 401:
print("Error - Unauthorised. The UUID is not valid. STATUS: ", res.status_code, "UUID: ", UUID)
return False