From d8c2c71f17ea754ac5204322614903ffef8681f0 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 10 May 2010 09:44:37 +0100 Subject: [PATCH] xm: catch TypeError if xenconsole is nonexistent Signed-off-by: Yu Zhiguo xen-unstable changeset: 21258:31a6937e2359 xen-unstable date: Tue May 04 12:10:54 2010 +0100 --- tools/python/xen/util/auxbin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/util/auxbin.py b/tools/python/xen/util/auxbin.py index 8dd2e5dec0..a690ad94d1 100644 --- a/tools/python/xen/util/auxbin.py +++ b/tools/python/xen/util/auxbin.py @@ -28,7 +28,7 @@ def execute(exe, args = None): a.extend(args) try: os.execv(exepath, a) - except OSError, exn: + except (OSError, TypeError), exn: print exepath, ": ", exn sys.exit(1)