From d6f4f71e7fc1b9e0f41716925861563bb261a92d Mon Sep 17 00:00:00 2001 From: jbruce Date: Sun, 22 May 2022 11:50:44 -0400 Subject: [PATCH] adding timeout to get --- watcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watcher.py b/watcher.py index c78ee38..aae6a57 100755 --- a/watcher.py +++ b/watcher.py @@ -11,7 +11,7 @@ import datetime def get_stats(): try: - r = requests.get(kiln_url) + r = requests.get(kiln_url,timeout=1) return r.json() except: return {}