diff options
| author | 2011-02-16 17:27:13 +0100 | |
|---|---|---|
| committer | 2011-02-16 17:27:13 +0100 | |
| commit | 98dcd4aee96184a8f6e057088e720c0ea19a2c9c (patch) | |
| tree | bcaefd6f78204e13dfa75a390a2a320d50f5e401 /module/remote | |
| parent | fileorder fix? (diff) | |
| download | pyload-98dcd4aee96184a8f6e057088e720c0ea19a2c9c.tar.xz | |
win connection fix
Diffstat (limited to 'module/remote')
| -rw-r--r-- | module/remote/thriftbackend/ThriftClient.py | 7 | 
1 files changed, 5 insertions, 2 deletions
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()  | 
