summaryrefslogtreecommitdiffstats
path: root/module/web/api_app.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-09 18:29:42 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-09 18:29:42 +0200
commit18eb66b6aec6abcb0c18f6fdb333b42484d656b0 (patch)
treee1c4271f3eec0289ece071b156ed92e2ddf31cfc /module/web/api_app.py
parentAdd tooltips to the Activity bar (diff)
parentupdated js/mootools, some parts now coffeescript (diff)
downloadpyload-18eb66b6aec6abcb0c18f6fdb333b42484d656b0.tar.xz
Merged in mineo/pyload (pull request #1)
Diffstat (limited to 'module/web/api_app.py')
-rw-r--r--module/web/api_app.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/web/api_app.py b/module/web/api_app.py
index 61be8b510..25b9f7d3d 100644
--- a/module/web/api_app.py
+++ b/module/web/api_app.py
@@ -64,6 +64,8 @@ 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()]))
+ if result is None: result = True
+
return json.dumps(result, cls=TBaseEncoder)