summaryrefslogtreecommitdiffstats
path: root/module/remote/thriftbackend/ThriftClient.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/remote/thriftbackend/ThriftClient.py')
-rw-r--r--module/remote/thriftbackend/ThriftClient.py6
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()