diff options
author | 2013-01-02 22:03:02 +0100 | |
---|---|---|
committer | 2013-01-02 22:03:02 +0100 | |
commit | a786fef06639da439f9edd367db36388dc1c2658 (patch) | |
tree | 84b7d7acf23c300bef4b0fd5ee744e408ffc1152 /module/remote/WSClient.py | |
parent | New naming: pyLoadCore -> pyload (diff) | |
download | pyload-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.py | 2 |
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: |