From bfb5cae308a1149e94ba5241a33ee66ba85c0b2a Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 24 Aug 2023 11:57:56 +1000 Subject: [PATCH] main: no workers catch v2 patch --- master/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/master/main.py b/master/main.py index e5bb867..197283e 100644 --- a/master/main.py +++ b/master/main.py @@ -155,7 +155,7 @@ def list_workers(): # Check if there are any workers (by seeing if there are any :) if len(workers) == 0: return jsonify({'error': 'No workers available', 'success': 'false'}) - if not worker.contains(':'): + if not workers.contains(':'): return jsonify({'error': 'No workers available', 'success': 'false'}) worker_list = []