From e1aa30058edb184d3375a2d4d4aa6e7cdd2f0a3e Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 24 Aug 2023 14:09:25 +1000 Subject: [PATCH] main: Fixed error from extra lines in worker file --- master/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/master/main.py b/master/main.py index 404bb0f..c3c8c9a 100644 --- a/master/main.py +++ b/master/main.py @@ -65,6 +65,9 @@ def new_site(): # Get a worker that has available slots worker = None for line in workers: + if not line.__contains__(':'): + continue + ip = line.split(':')[1].strip('\n') resp=requests.get("http://"+ip + ":5000/status",timeout=2) if (resp.status_code == 200):