From 98dcd4aee96184a8f6e057088e720c0ea19a2c9c Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 16 Feb 2011 17:27:13 +0100 Subject: win connection fix --- module/remote/thriftbackend/ThriftClient.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'module/remote/thriftbackend') diff --git a/module/remote/thriftbackend/ThriftClient.py b/module/remote/thriftbackend/ThriftClient.py index de9b9abd7..e1238274d 100644 --- a/module/remote/thriftbackend/ThriftClient.py +++ b/module/remote/thriftbackend/ThriftClient.py @@ -3,6 +3,7 @@ import sys from socket import error from os.path import dirname, abspath, join +from traceback import print_exc try: import thrift @@ -39,7 +40,8 @@ class ThriftClient: if e.args and e.args[0] in (111, 10061): raise NoConnection else: - raise + print_exc() + raise NoConnection try: correct = self.client.login(user, password) @@ -62,7 +64,8 @@ class ThriftClient: elif e.args and e.args[0] == 32: raise NoConnection else: - raise + print_exc() + raise NoConnection if not correct: self.transport.close() -- cgit v1.2.3