Skip to content
Snippets Groups Projects
Commit 6d2b28a6 authored by Martin Larralde's avatar Martin Larralde
Browse files

Silence `BrokenPipeError` exceptions of `pyhmmer.hmmer` workers

parent 003379bd
No related branches found
No related tags found
No related merge requests found
......@@ -275,6 +275,9 @@ class _BaseWorker(typing.Generic[_Q, _T, _R]):
chore = self.query_queue.get(timeout=1)
except queue.Empty:
continue
except BrokenPipeError:
self.kill()
break
except ConnectionResetError:
self.kill()
break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment