Gracefully handle sys.exit() in python 2.4
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user