From c082bd78a70530e700583b40b602cebbcc53e7ef Mon Sep 17 00:00:00 2001 From: MarkParker5 Date: Sat, 27 Feb 2021 01:15:45 +0200 Subject: [PATCH] fix --- archieapi/apps/api/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archieapi/apps/api/views.py b/archieapi/apps/api/views.py index e590f68..2c4d255 100644 --- a/archieapi/apps/api/views.py +++ b/archieapi/apps/api/views.py @@ -18,7 +18,8 @@ def command(request): name = request.GET.get("name") params = request.GET.get("params") or {} if not name: return HttpResponse("") - try: cmd = Command.getCommand(name) + cmd = Command.getCommand(name) + try: response = cmd.start() except: return HttpResponse("") if not cmd: return HttpResponse("") json_string = json.dumps(response)