mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
xm: catch TypeError if xenconsole is nonexistent
Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com> xen-unstable changeset: 21258:31a6937e2359 xen-unstable date: Tue May 04 12:10:54 2010 +0100
This commit is contained in:
1 parent
39f909503c
commit
d8c2c71f17
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
|
||||