diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-02-14 19:14:10 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-02-14 19:14:10 +0100 |
commit | 4aaa1dd526013e01775b1b07e757a33b328659a6 (patch) | |
tree | 00a81f3be666021fa435bd24fb896cb65fa77899 /module/remote/thriftbackend/ThriftClient.py | |
parent | closes #232 (diff) | |
download | pyload-4aaa1dd526013e01775b1b07e757a33b328659a6.tar.xz |
finished cli
Diffstat (limited to 'module/remote/thriftbackend/ThriftClient.py')
-rw-r--r-- | module/remote/thriftbackend/ThriftClient.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/module/remote/thriftbackend/ThriftClient.py b/module/remote/thriftbackend/ThriftClient.py index c5beec96e..d5c203cf0 100644 --- a/module/remote/thriftbackend/ThriftClient.py +++ b/module/remote/thriftbackend/ThriftClient.py @@ -57,6 +57,10 @@ class ThriftClient: correct = self.client.login(user, password) finally: self.socket.setTimeout(None) + elif e.args and e.args[0] == 32: + raise NoConnection + else: + raise if not correct: self.transport.close() @@ -77,7 +81,7 @@ class ThriftClient: if __name__ == "__main__": - client = ThriftClient(user="User", password="pyloadweb") + client = ThriftClient(user="User", password="") print client.getServerVersion() print client.statusServer() |