This commit is contained in:
Kovid Goyal
2022-05-20 20:45:08 +05:30
parent c747e681a2
commit ea8bed2a71

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()