tcatch exception in interface.close - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit d3a9af9e796d8ae42b80ca6172fc4075d77599c5 DIR parent 43b770fbf5520efde53413765456d6e7bc5c633d HTML Author: ThomasV <thomasv@electrum.org> Date: Thu, 10 Mar 2016 15:38:24 +0100 catch exception in interface.close Diffstat: M lib/interface.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/interface.py b/lib/interface.py t@@ -243,7 +243,10 @@ class Interface(util.PrintError): def close(self): if not self.closed_remotely: - self.socket.shutdown(socket.SHUT_RDWR) + try: + self.socket.shutdown(socket.SHUT_RDWR) + except socket.error: + pass self.socket.close() def queue_request(self, *args): # method, params, _id