Gracefully handle sys.exit() in python 2.4

This commit is contained in:
Rob Crittenden
2008-02-11 09:41:14 -05:00
parent 5f86f5a5fd
commit 5be3defccf

View File

@@ -512,6 +512,8 @@ def main():
try:
main()
sys.exit(0)
except SystemExit, e:
sys.exit(e)
except Exception, e:
message = "Unexpected error - see ipaserver-install.log for details:\n %s" % str(e)
print message