summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-09-07 13:24:38 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-09-07 13:24:38 (GMT)
commit19651369e4f195633aa4be97ce8ccdb97289af5f (patch)
treebaaf5ddf04096eca4510b69ac509f095d6289cbe /Lib
parentdc4872eefe2531e6627aa09818e95372a50e3b45 (diff)
downloadcpython-19651369e4f195633aa4be97ce8ccdb97289af5f.zip
cpython-19651369e4f195633aa4be97ce8ccdb97289af5f.tar.gz
cpython-19651369e4f195633aa4be97ce8ccdb97289af5f.tar.bz2
Adjust #8956 to add the bad signal number to the exception message.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/subprocess.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index e53b694..d699ed0 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