diff --git a/master/main.py b/master/main.py index 7cd91f9..e5bb867 100644 --- a/master/main.py +++ b/master/main.py @@ -152,9 +152,11 @@ def list_workers(): workers = workers_file.readlines() workers_file.close() - # Check if there are any 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(':'): + return jsonify({'error': 'No workers available', 'success': 'false'}) worker_list = [] for worker in workers: