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
1 changed files with 2 additions and 1 deletions

View File

@ -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: