This commit is contained in:
Kovid Goyal 2022-05-20 20:45:08 +05:30
parent c747e681a2
commit ea8bed2a71
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -59,7 +59,7 @@ def main() -> None:
write(line)
except KeyboardInterrupt:
p.send_signal(signal.SIGINT)
except EOFError:
except (EOFError, BrokenPipeError):
pass
finally:
p.stdout.close()