Set OwlBoard connection check timeout to 10s
This commit is contained in:
parent
87cbd484ce
commit
31f1495833
@ -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
|
||||
|
Reference in New Issue
Block a user