[XM] Set proper return code for exceptions in xm, catch ACMError.

Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
atse@norwich.uk.xensource.com committed 2006-09-28 12:03:10 +01:00
1 parent cc4761e041
commit 9bb76d3442
1 file changed
+5
+5
View File
@@ -1478,10 +1478,15 @@ def main(argv=sys.argv):
except (ValueError, OverflowError):
err("Invalid argument.")
usage(argv[1])
sys.exit(1)
except OptionError, e:
err(str(e))
usage(argv[1])
print e.usage()
sys.exit(1)
except security.ACMError, e:
err(str(e))
sys.exit(1)
except:
print "Unexpected error:", sys.exc_info()[0]
print
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.