diff options
author | Ewan Mellor <ewan@xensource.com> | 2007-03-28 10:04:32 +0100 |
---|---|---|
committer | Ewan Mellor <ewan@xensource.com> | 2007-03-28 10:04:32 +0100 |
commit | 16320c2cdf4f900db348f851ed45b71c824cd526 (patch) | |
tree | c4287350dd0d9da11dd1bc3067a38286927c469a /tools | |
parent | e8130031cf4169c8a9f33a217f31ce16bb230351 (diff) | |
download | xen-16320c2cdf4f900db348f851ed45b71c824cd526.tar.gz xen-16320c2cdf4f900db348f851ed45b71c824cd526.tar.bz2 xen-16320c2cdf4f900db348f851ed45b71c824cd526.zip |
Fix diagnosis of unhandled exceptions.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/python/xen/xm/main.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index 87f5ae29a8..77d647f402 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -2371,11 +2371,10 @@ def _run_cmd(cmd, cmd_name, args): if isinstance(e, security.ACMError): err(str(e)) return False, 1 - else: - print "Unexpected error:", sys.exc_info()[0] - print - print "Please report to xen-devel@lists.xensource.com" - raise + print "Unexpected error:", sys.exc_info()[0] + print + print "Please report to xen-devel@lists.xensource.com" + raise return False, 1 |