]> gitweb.michael.orlitzky.com - djbdns-logparse.git/commit
djbdns/io.py: handle BrokenPipeError in parse_logfile().
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 20 Sep 2022 23:48:10 +0000 (19:48 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 20 Sep 2022 23:48:10 +0000 (19:48 -0400)
commit4645a2edd7eeb0470d5796f4f15f02d23429288e
tree018228d704625562cb0cf49032101956101459a5
parentd5ffd8dfd137722335b066be63bb24289a52c71a
djbdns/io.py: handle BrokenPipeError in parse_logfile().

This avoids a (harmless) crash when the output of djbdns-logparse is
piped to a process (such as head/tail) that closes the pipe before
djbdns-logparse is done writing to it.
djbdns/io.py