From: Brian Curtin Date: Tue, 7 Sep 2010 13:24:38 +0000 (+0000) Subject: Adjust #8956 to add the bad signal number to the exception message. X-Git-Tag: v3.2a3~399 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19651369e4f195633aa4be97ce8ccdb97289af5f;p=python Adjust #8956 to add the bad signal number to the exception message. --- 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