summaryrefslogtreecommitdiffstats
path: root/module/remote/WSClient.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-01-02 22:03:02 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-01-02 22:03:02 +0100
commita786fef06639da439f9edd367db36388dc1c2658 (patch)
tree84b7d7acf23c300bef4b0fd5ee744e408ffc1152 /module/remote/WSClient.py
parentNew naming: pyLoadCore -> pyload (diff)
downloadpyload-a786fef06639da439f9edd367db36388dc1c2658.tar.xz
little cleanup, improved handling of custom exceptions via api
Diffstat (limited to 'module/remote/WSClient.py')
-rw-r--r--module/remote/WSClient.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/remote/WSClient.py b/module/remote/WSClient.py
index 23b5fc3ca..fc7590edb 100644
--- a/module/remote/WSClient.py
+++ b/module/remote/WSClient.py
@@ -34,6 +34,8 @@ class WSClient:
self.ws.send(dumps([func, args]))
code, result = loads(self.ws.recv())
+ if code == 400:
+ raise result
if code == 404:
raise AttributeError("Unknown Method")
elif code == 500: