Ignore broken pipes when streaming blocks in the gossip client

This commit is contained in:
Kevin F 2022-05-05 22:31:05 -05:00
parent 50f0cfa6f4
commit 7b7d6a03d3

View File

@ -100,7 +100,8 @@ def stream_from_peers():
raise raise
# Tell them to keep streaming # Tell them to keep streaming
sock.sendall(int(1).to_bytes(1, 'big')) sock.sendall(int(1).to_bytes(1, 'big'))
except BrokenPipeError:
pass
except Exception: except Exception:
logger.warn(traceback.format_exc(), terminal=True) logger.warn(traceback.format_exc(), terminal=True)
finally: finally: