summaryrefslogtreecommitdiffstats
path: root/module/remote/JSONClient.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/remote/JSONClient.py')
-rw-r--r--module/remote/JSONClient.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/remote/JSONClient.py b/module/remote/JSONClient.py
index 9f678f5bd..469d40317 100644
--- a/module/remote/JSONClient.py
+++ b/module/remote/JSONClient.py
@@ -16,6 +16,8 @@ class JSONClient:
def request(self, path, data):
ret = urlopen(self.url + path, urlencode(data))
+ if ret.code == 400:
+ raise loads(ret.read())
if ret.code == 404:
raise AttributeError("Unknown Method")
if ret.code == 500: