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