From 98a9f43b5585efbe6b69622040a602089c93f58a Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 9 Oct 2011 20:12:20 +0200 Subject: closed #400 --- module/web/api_app.py | 1 + 1 file changed, 1 insertion(+) (limited to 'module/web/api_app.py') diff --git a/module/web/api_app.py b/module/web/api_app.py index 25b9f7d3d..db735a5b9 100644 --- a/module/web/api_app.py +++ b/module/web/api_app.py @@ -64,6 +64,7 @@ def callApi(func, *args, **kwargs): result = getattr(PYLOAD, func)(*[literal_eval(x) for x in args], **dict([(x, literal_eval(y)) for x, y in kwargs.iteritems()])) + # null is invalid json response if result is None: result = True return json.dumps(result, cls=TBaseEncoder) -- cgit v1.2.3