From ea917e00e6fc10d1b52a80f931836ed875cc6ed6 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 14 Jan 2011 16:21:50 +0530 Subject: [PATCH] data optional --- pandora/api/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/api/actions.py b/pandora/api/actions.py index b826692d3..6a2c151b9 100644 --- a/pandora/api/actions.py +++ b/pandora/api/actions.py @@ -75,7 +75,7 @@ class ApiActions(dict): } } ''' - data = json.loads(request.POST['data']) + data = json.loads(request.POST.get('data', '{}')) docs = data.get('docs', False) _actions = self.keys() _actions.sort()