From 19651369e4f195633aa4be97ce8ccdb97289af5f Mon Sep 17 00:00:00 2001 From: Brian Curtin Date: Tue, 7 Sep 2010 13:24:38 +0000 Subject: [PATCH] Adjust #8956 to add the bad signal number to the exception message. --- Lib/subprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/subprocess.py b/Lib/subprocess.py index e53b69456e..d699ed07ce 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -983,7 +983,7 @@ class Popen(object): elif sig == signal.CTRL_BREAK_EVENT: os.kill(self.pid, signal.CTRL_BREAK_EVENT) else: - raise ValueError("Unsupported signal") + raise ValueError("Unsupported signal: {}".format(sig)) def terminate(self): """Terminates the process -- 2.40.0