diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-05-10 09:44:37 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-05-10 09:44:37 +0100 |
commit | d8c2c71f17ea754ac5204322614903ffef8681f0 (patch) | |
tree | 9e987442376b2aef18ff3d1bac4b8288d2fd699a | |
parent | 39f909503c2a912ec6ac723b3e7e37e5dc71eb8e (diff) | |
download | xen-d8c2c71f17ea754ac5204322614903ffef8681f0.tar.gz xen-d8c2c71f17ea754ac5204322614903ffef8681f0.tar.bz2 xen-d8c2c71f17ea754ac5204322614903ffef8681f0.zip |
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
-rw-r--r-- | tools/python/xen/util/auxbin.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |