From 0904dec8109c3902b65a8675d7291b0ba1551105 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 28 Feb 2022 11:02:06 +0530 Subject: [PATCH] Fix exception on ctrl+c exit of program under --hold --- __main__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/__main__.py b/__main__.py index 4b419ace1..759773a89 100644 --- a/__main__.py +++ b/__main__.py @@ -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: