tdo not catch OSError in pipe.send (fix ANR on some versions of Android) - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit ad6dd73a032517651d6e029163628d67039a36d2 DIR parent de4fe9db693b0bdf2f97ce558552d0068fb977d9 HTML Author: ThomasV <thomasv@electrum.org> Date: Thu, 5 Apr 2018 11:27:12 +0200 do not catch OSError in pipe.send (fix ANR on some versions of Android) Diffstat: M lib/interface.py | 4 ++-- M lib/util.py | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) --- DIR diff --git a/lib/interface.py b/lib/interface.py t@@ -297,8 +297,8 @@ class Interface(util.PrintError): wire_requests = self.unsent_requests[0:n] try: self.pipe.send_all([make_dict(*r) for r in wire_requests]) - except socket.error as e: - self.print_error("socket error:", e) + except BaseException as e: + self.print_error("pipe send error:", e) return False self.unsent_requests = self.unsent_requests[n:] for request in wire_requests: DIR diff --git a/lib/util.py b/lib/util.py t@@ -736,10 +736,6 @@ class SocketPipe: print_error("SSLError:", e) time.sleep(0.1) continue - except OSError as e: - print_error("OSError", e) - time.sleep(0.1) - continue class QueuePipe: