Gracefully handle sys.exit() in python 2.4

This commit is contained in:
Rob Crittenden committed 2008-02-11 09:41:14 -05:00
1 parent 5f86f5a5fd
commit 5be3defccf
1 file changed
+2
@@ -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