From 7b7d6a03d320d8bbcfbc364dd44b8c1cb536d349 Mon Sep 17 00:00:00 2001 From: Kevin F Date: Thu, 5 May 2022 22:31:05 -0500 Subject: [PATCH] Ignore broken pipes when streaming blocks in the gossip client --- src/gossip/client/streamblocks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gossip/client/streamblocks.py b/src/gossip/client/streamblocks.py index 192f7280..1e2b0170 100644 --- a/src/gossip/client/streamblocks.py +++ b/src/gossip/client/streamblocks.py @@ -100,7 +100,8 @@ def stream_from_peers(): raise # Tell them to keep streaming sock.sendall(int(1).to_bytes(1, 'big')) - + except BrokenPipeError: + pass except Exception: logger.warn(traceback.format_exc(), terminal=True) finally: