You've already forked STARK
mirror of
https://github.com/MarkParker5/STARK.git
synced 2025-07-02 22:36:54 +02:00
fix
This commit is contained in:
@ -18,7 +18,8 @@ def command(request):
|
|||||||
name = request.GET.get("name")
|
name = request.GET.get("name")
|
||||||
params = request.GET.get("params") or {}
|
params = request.GET.get("params") or {}
|
||||||
if not name: return HttpResponse("")
|
if not name: return HttpResponse("")
|
||||||
try: cmd = Command.getCommand(name)
|
cmd = Command.getCommand(name)
|
||||||
|
try: response = cmd.start()
|
||||||
except: return HttpResponse("")
|
except: return HttpResponse("")
|
||||||
if not cmd: return HttpResponse("")
|
if not cmd: return HttpResponse("")
|
||||||
json_string = json.dumps(response)
|
json_string = json.dumps(response)
|
||||||
|
Reference in New Issue
Block a user