From 31f1495833f421f9c6a68200fb269e8d6f56b63d Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Thu, 3 Oct 2024 11:54:28 +0100 Subject: [PATCH] Set OwlBoard connection check timeout to 10s --- src/owlboard_connector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/owlboard_connector.py b/src/owlboard_connector.py index 4e75cb6..cf39886 100644 --- a/src/owlboard_connector.py +++ b/src/owlboard_connector.py @@ -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