Fix a resource warning
This commit is contained in:
parent
ce50043048
commit
5b3ac259ce
@ -55,8 +55,9 @@ def main() -> None:
|
||||
write(line)
|
||||
except KeyboardInterrupt:
|
||||
p.send_signal(signal.SIGINT)
|
||||
p.stdout.close()
|
||||
except EOFError:
|
||||
pass
|
||||
finally:
|
||||
p.stdout.close()
|
||||
raise SystemExit(p.wait())
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user