summaryrefslogtreecommitdiffstats
path: root/module/remote/wsbackend/ApiHandler.py
diff options
context:
space:
mode:
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)