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
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ def check_connection():
print("'DGP_OB_UUID' must be set in the environment") print("'DGP_OB_UUID' must be set in the environment")
return False 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: if res.status_code == 401:
print("Error - Unauthorised. The UUID is not valid. STATUS: ", res.status_code, "UUID: ", UUID) print("Error - Unauthorised. The UUID is not valid. STATUS: ", res.status_code, "UUID: ", UUID)
return False return False