summaryrefslogtreecommitdiffstats
path: root/exception.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-08-23 16:46:57 +0000
committerErik Troan <ewt@redhat.com>2000-08-23 16:46:57 +0000
commitf497b8a967403ce709cdd570e404de5fb9bd336d (patch)
tree4b63889325c8d4b71e5a917f9f25d3d8150eb560 /exception.py
parent83b4233df9141f9941d6a024372e4ad08e604865 (diff)
downloadanaconda-f497b8a967403ce709cdd570e404de5fb9bd336d.tar.gz
anaconda-f497b8a967403ce709cdd570e404de5fb9bd336d.tar.xz
anaconda-f497b8a967403ce709cdd570e404de5fb9bd336d.zip
1) let pickle of todo fail
2) display a message when we've saved the system state before rebooting
Diffstat (limited to 'exception.py')
-rw-r--r--exception.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/exception.py b/exception.py
index c9d69e5f2..41b080398 100644
--- a/exception.py
+++ b/exception.py
@@ -80,10 +80,17 @@ def handleException(todo, (type, value, tb)):
todo.rootpassword = None
todo.users = None
- p.dump(todo)
+ try:
+ p.dump(todo)
+ except:
+ out.write("\n<failed>\n")
out.close()
isys.umount("/tmp/crash")
+ intf.messageWindow(_("Dump Written"),
+ _("Your system's state has been successfully written to the "
+ "floppy. Your system will now be reset."))
+
intf.__del__ ()
os.kill(os.getpid(), signal.SIGKILL)