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:
Keir Fraser committed 2010-05-10 09:44:37 +01:00
1 parent 39f909503c
commit d8c2c71f17
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.