Fix removed return statement in client authentication
This commit is contained in:
1 parent
64523f93e0
commit
28d4f859c2
1 file changed
+1
-1
+1
-1
@@ -572,7 +572,7 @@ def verify_worker(function):
|
|||||||
|
|
||||||
# Get the machine, assuming it exists
|
# Get the machine, assuming it exists
|
||||||
try: machine = Machine.objects.get(id=int(args[0].POST['machine_id']))
|
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
|
# Ensure the Client is using the same version as the Server
|
||||||
if machine.info['client_ver'] != OPENBENCH_CONFIG['client_version']:
|
if machine.info['client_ver'] != OPENBENCH_CONFIG['client_version']:
|
||||||
|
|||||||
Reference in new issue
Block a user