tinterface: don't show traceback on error 104 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit b3364b87d1fa08178197f1f8f7ece445bc0c3719 DIR parent 9874afac8b89b53d58189a852d49689e68f9255b HTML Author: ThomasV <thomasv@gitorious> Date: Sat, 21 Feb 2015 14:45:09 +0100 interface: don't show traceback on error 104 Diffstat: M lib/interface.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- DIR diff --git a/lib/interface.py b/lib/interface.py t@@ -266,8 +266,10 @@ class TcpInterface(threading.Thread): return print_error("wrong certificate", self.host) return - except BaseException: - print_error("wrap_socket failed", self.host) + except BaseException, e: + print_error(self.host, e) + if e.errno == 104: + return traceback.print_exc(file=sys.stderr) return