diff --git a/kittens/hyperlinked_grep/main.py b/kittens/hyperlinked_grep/main.py index 78f110e10..363295b25 100644 --- a/kittens/hyperlinked_grep/main.py +++ b/kittens/hyperlinked_grep/main.py @@ -56,6 +56,8 @@ def main() -> None: except KeyboardInterrupt: p.send_signal(signal.SIGINT) p.stdout.close() + except EOFError: + p.stdout.close() raise SystemExit(p.wait())