From 908c28bab89525250172a4013667319942846065 Mon Sep 17 00:00:00 2001 From: mkaay Date: Sun, 13 Feb 2011 15:06:03 +0100 Subject: fixes + improvements --- module/remote/thriftbackend/ThriftClient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/remote/thriftbackend/ThriftClient.py') diff --git a/module/remote/thriftbackend/ThriftClient.py b/module/remote/thriftbackend/ThriftClient.py index 9fcabc4e7..67474b2bb 100644 --- a/module/remote/thriftbackend/ThriftClient.py +++ b/module/remote/thriftbackend/ThriftClient.py @@ -52,7 +52,7 @@ class ThriftClient: correct = self.client.login(user, password) finally: self.socket.setTimeout(None) - + if not correct: self.transport.close() raise WrongLogin @@ -80,4 +80,4 @@ if __name__ == "__main__": for p in q: data = client.getPackageData(p.pid) print data - print "Package Name: ", data.name \ No newline at end of file + print "Package Name: ", data.name -- cgit v1.2.3