From 28d4f859c2dee768d753f7dbb2ce0047b692d486 Mon Sep 17 00:00:00 2001 From: andrew Date: Thu, 16 Nov 2023 20:53:12 -0500 Subject: [PATCH] Fix removed return statement in client authentication --- OpenBench/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenBench/views.py b/OpenBench/views.py index 46e2fa6..fe76815 100644 --- a/OpenBench/views.py +++ b/OpenBench/views.py @@ -572,7 +572,7 @@ def verify_worker(function): # Get the machine, assuming it exists try: machine = Machine.objects.get(id=int(args[0].POST['machine_id'])) - except: JsonResponse({ 'error' : 'Bad Machine Id' }) + except: return JsonResponse({ 'error' : 'Bad Machine Id' }) # Ensure the Client is using the same version as the Server if machine.info['client_ver'] != OPENBENCH_CONFIG['client_version']: