Fix #5113
This commit is contained in:
parent
c747e681a2
commit
ea8bed2a71
@ -59,7 +59,7 @@ def main() -> None:
|
|||||||
write(line)
|
write(line)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
p.send_signal(signal.SIGINT)
|
p.send_signal(signal.SIGINT)
|
||||||
except EOFError:
|
except (EOFError, BrokenPipeError):
|
||||||
pass
|
pass
|
||||||
finally:
|
finally:
|
||||||
p.stdout.close()
|
p.stdout.close()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user