BrokenPipeError when piping textual output to UNIX filter
We should be nicer than this to UNIX filters:
$ swh scanner scan --output-format ndjson /srv/src/linux/linux-5.9.1/kernel | head -n 1
{".": {"swhid": "swh:1:dir:5f18abc022c8aa2652008ca75314281d552c8498", "known": true}}
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe