summaryrefslogtreecommitdiffstats
path: root/pyanaconda
diff options
context:
space:
mode:
authorSamantha N. Bueno <sbueno+anaconda@redhat.com>2012-11-27 11:19:14 -0500
committerSamantha N. Bueno <sbueno+anaconda@redhat.com>2012-11-27 11:19:14 -0500
commit0329d2212f151053ef2923bed08864b09a209a3e (patch)
tree4e27ad8ca62468a75e1f5d7a2a73ca4ccafa6dd5 /pyanaconda
parent65c53f1a2ac0cf7405dc44955b7cf4cb3fa86b9c (diff)
downloadanaconda-0329d2212f151053ef2923bed08864b09a209a3e.tar.gz
anaconda-0329d2212f151053ef2923bed08864b09a209a3e.tar.xz
anaconda-0329d2212f151053ef2923bed08864b09a209a3e.zip
Catch OverflowError in manual partitioning.
Instead of crashing, inform users they should use integer values when entering partition sizes.
Diffstat (limited to 'pyanaconda')
-rw-r--r--pyanaconda/ui/gui/spokes/custom.py7
1 files changed, 7 insertions, 0 deletions
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()