Skip to content

Commit

Permalink
Fix error spam when builds fail on macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvander committed Nov 5, 2023
1 parent a0db366 commit 9e21985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ambuild2/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def try_send(self, message):
try:
self.channel.send(message)
except OSError as e:
if getattr(e, 'winerror', 0) == 232:
if getattr(e, 'winerror', 0) == 232 or e.errno == errno.EPIPE:
# Parent is dead, so ignore the error.
return
raise
Expand Down

0 comments on commit 9e21985

Please sign in to comment.