Fix exception on ctrl+c exit of program under --hold

This commit is contained in:
Kovid Goyal 2022-02-28 11:02:06 +05:30
parent 0aa07ead7e
commit 0904dec810
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -31,6 +31,7 @@ def runpy(args: List[str]) -> None:
def hold(args: List[str]) -> None:
import subprocess
ret = 1
try:
ret = subprocess.Popen(args[1:]).wait()
except KeyboardInterrupt: