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)