Skip to content

Commit

Permalink
Silence BrokenPipeError exceptions of pyhmmer.hmmer workers
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Oct 25, 2024
1 parent 003379b commit 6d2b28a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pyhmmer/hmmer/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ def run(self) -> None:
chore = self.query_queue.get(timeout=1)
except queue.Empty:
continue
except BrokenPipeError:
self.kill()
break
except ConnectionResetError:
self.kill()
break
Expand Down

0 comments on commit 6d2b28a

Please sign in to comment.