From 573c7bf41df66ad1db2831c279786a4cffe568ed Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Mon, 2 Aug 2010 12:24:48 -0400 Subject: [PATCH] add BootManagerException back --- source/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/utils.py b/source/utils.py index b6b51c8..fcd1ab1 100644 --- a/source/utils.py +++ b/source/utils.py @@ -139,8 +139,11 @@ def sysexec( cmd, log= None ): raise BootManagerException, \ "Unable to create instance of subprocess.Popen " \ "for command: %s" % cmd + try: + (stdoutdata, stderrdata) = prog.communicate() + except KeyboardInterrupt: + raise BootManagerException, "Interrupted by user" - (stdoutdata, stderrdata) = prog.communicate() if log is not None: log.write(stdoutdata) -- 2.43.0