URI: 
       tprint reason if connection fails - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit fdaf4e42a9c1ed1c3d27eea49b5f2be59361c902
   DIR parent a90f3e00276b67f5a5853dbedd8f91c763dc83cf
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Sat, 28 Feb 2015 19:45:10 +0100
       
       print reason if connection fails
       
       Diffstat:
         M lib/interface.py                    |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/lib/interface.py b/lib/interface.py
       t@@ -181,10 +181,10 @@ class TcpInterface(threading.Thread):
                        s = socket.socket(res[0], socket.SOCK_STREAM)
                        s.connect(res[4])
                        return s
       -            except:
       +            except BaseException as e:
                        continue
                else:
       -            print_error("failed to connect", self.host, self.port)
       +            print_error("failed to connect", self.host, self.port, str(e))
        
        
            def get_socket(self):