xm: catch TypeError if xenconsole is nonexistent

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
This commit is contained in:
Keir Fraser committed 2010-05-04 12:10:54 +01:00
1 parent ba6ae3d1ef
commit 1edbc90d99
1 file changed
+1 -1
+1 -1
View File
@@ -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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.