summaryrefslogtreecommitdiffstats
path: root/module/remote/wsbackend/ApiHandler.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-09-22 19:57:54 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-09-22 19:57:54 +0200
commit2c02eac4fc62d33556d5c1ad8748ecbe6a0b812f (patch)
treea8169eb3b708ac82421f0e80b97f47b1b5af1f96 /module/remote/wsbackend/ApiHandler.py
parentweb socket api handler (diff)
downloadpyload-2c02eac4fc62d33556d5c1ad8748ecbe6a0b812f.tar.xz
fixed the dashboard
Diffstat (limited to 'module/remote/wsbackend/ApiHandler.py')
-rw-r--r--module/remote/wsbackend/ApiHandler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/remote/wsbackend/ApiHandler.py b/module/remote/wsbackend/ApiHandler.py
index 8f6bb3a0a..478ea6de0 100644
--- a/module/remote/wsbackend/ApiHandler.py
+++ b/module/remote/wsbackend/ApiHandler.py
@@ -64,7 +64,7 @@ class ApiHandler:
if type(o) != list and len(o) > 2:
self.log.debug("Invalid Api call: %s" % o)
return self.send_result(req, 500, "Invalid Api call")
- if len(o) == 1: # arguments ommited
+ if len(o) == 1: # arguments omitted
o.append([])
func, args = o
@@ -100,6 +100,7 @@ class ApiHandler:
except Exception, e:
return self.send_result(req, 500, str(e))
+ # None is invalid json type
if result is None: result = True
return self.send_result(req, 200, result)