From 7202205688d9c75377925011e07938e50030b617 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Fri, 4 May 2018 10:09:31 +0200 Subject: [FIX] packaging: avoid traceback on virtual machine timeout When the virtual machine used to build MS Win package takes too much time (to build or to test the build), a warning is logged and the VM is killed. Before this commit, the PID of the process was passed as an argument to the warning method, causing a traceback. --- setup/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup') diff --git a/setup/package.py b/setup/package.py index eeea18aabe1..dd15b84e224 100755 --- a/setup/package.py +++ b/setup/package.py @@ -181,7 +181,7 @@ class KVM(object): self.login = login def timeout(self,signum,frame): - logging.warning("vm timeout kill",self.pid) + logging.warning("vm timeout kill (pid: {})".format(self.pid)) os.kill(self.pid,15) def start(self): -- cgit v1.2.3