diff --git a/game/views/level.py b/game/views/level.py index a4146b72b..a4511b002 100644 --- a/game/views/level.py +++ b/game/views/level.py @@ -361,11 +361,9 @@ def load_workspace(request, workspaceID): def save_workspace(request, workspaceID=None): request_params = ["name", "contents", "python_contents", "blockly_enabled", "python_enabled", "pythonViewEnabled"] - missing_params = [param for param in request_params if param not in request.POST] if missing_params != []: raise Exception("Request missing the following required parameters", missing_params) - name = request.POST.get("name") contents = request.POST.get("contents") python_contents = request.POST.get("python_contents")