From 0329d2212f151053ef2923bed08864b09a209a3e Mon Sep 17 00:00:00 2001 From: "Samantha N. Bueno" Date: Tue, 27 Nov 2012 11:19:14 -0500 Subject: Catch OverflowError in manual partitioning. Instead of crashing, inform users they should use integer values when entering partition sizes. --- pyanaconda/ui/gui/spokes/custom.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pyanaconda') diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py index fe2d9b08d..f6f88bf65 100644 --- a/pyanaconda/ui/gui/spokes/custom.py +++ b/pyanaconda/ui/gui/spokes/custom.py @@ -1632,6 +1632,13 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker): _("Failed to add new device. Click for " "details.")) self.window.show_all() + except OverflowError as e: + log.error("invalid size set for partition") + self._error = e + self.window.set_info(Gtk.MessageType.ERROR, + _("Invalid partition size set. Use a " + "valid integer.")) + self.window.show_all() self._devices = self.__storage.devices self._do_refresh() -- cgit