mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
xm: catch TypeError if xenconsole is nonexistent
Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
This commit is contained in:
1 parent
ba6ae3d1ef
commit
1edbc90d99
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)
|
||||
|
||||
|
||||