[PATCH - master] Remove some unused error handling code from old UI.
Chris Lumens
clumens at redhat.com
Tue Dec 18 21:27:33 UTC 2012
This is a relic from when I didn't know how error handling would work in
newui. It clearly doesn't do anything anymore, and should just raise an
exception that we can handle elsewhere.
---
pyanaconda/storage/formats/fs.py | 18 +-----------------
1 file changed, 1 insertion(+), 17 deletions(-)
diff --git a/pyanaconda/storage/formats/fs.py b/pyanaconda/storage/formats/fs.py
index 505e76e..e9c8463 100644
--- a/pyanaconda/storage/formats/fs.py
+++ b/pyanaconda/storage/formats/fs.py
@@ -505,23 +505,7 @@ class FS(DeviceFormat):
{"type": self.type, "device": self.device}
msg = self._fsckErrorMessage(ret)
-
- # FIXME: Bluh?
- if False:
- help = _("Errors like this usually mean there is a problem "
- "with the filesystem that will require user "
- "interaction to repair. Before restarting "
- "installation, reboot to rescue mode or another "
- "system that allows you to repair the filesystem "
- "interactively. Restart installation after you "
- "have corrected the problems on the filesystem.")
-
- intf.messageWindow(_("Unrecoverable Error"),
- hdr + "\n\n" + msg + "\n\n" + help,
- custom_icon='error')
- sys.exit(0)
- else:
- raise FSError(hdr + msg)
+ raise FSError(hdr + msg)
def loadModule(self):
"""Load whatever kernel module is required to support this filesystem."""
--
1.7.11.2
More information about the anaconda-patches
mailing list