Adjust #8956 to add the bad signal number to the exception message.
This commit is contained in:
parent
dc4872eefe
commit
19651369e4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue